New GPIO-API merged?

Christian MAUDERER christian.mauderer at
Tue Feb 28 09:26:51 UTC 2023

Hello Jan,

Duc Doan worked on that topic during his GSoC project last year:

The results looked quite interesting (even if some functions were still 
missing like switching GPIO groups). But at the end there was a problem 
with the Apache license of the STM libraries so that the new API would 
have been left without a reference implementation.

The API in the current bsp/gpio.h is designed to match a certain GPIO 
hardware module structure. It is currently implemented only on raspberry 
and beagle. For every GPIO module that doesn't match the structure, it 
adds quite some overhead. For example on the i.MX I tried to use it and 
gave up soon because mapping the structure would have wasted a lot of 
CPU cycles.

Best regards


On 2023-02-28 10:06, Jan.Sommer at wrote:
> We now found this general GPIO API here:
> Is this the current one to use when implementing a new GPIO driver?
>> -----Original Message-----
>> From: devel <devel-bounces at> On Behalf Of Jan.Sommer at
>> Sent: Mittwoch, 15. Februar 2023 08:40
>> To: devel at
>> Subject: New GPIO-API merged?
>> Hello everyone,
>> Alex' patch reminded me that there was work done related a new general
>> Has that been finished? I tried to find the corresponding header files, but
>> couldn't.
>> So, I was wondering what the current status is.
>> Best regards,
>>      Jan
>> Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR) German Aerospace
>> Center Institute for Software Technology | Software for Space Systems and
>> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
>> _______________________________________________
>> devel mailing list
>> devel at
> _______________________________________________
> devel mailing list
> devel at

embedded brains GmbH
Herr Christian MAUDERER
Dornierstr. 4
82178 Puchheim
email:  christian.mauderer at
phone:  +49-89-18 94 741 - 18
mobile: +49-176-152 206 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the devel mailing list