Re: Need community suggestions for a new generic GPIO API

2023-07-12 Thread Joel Sherrill
On Tue, Jul 11, 2023 at 12:50 PM Gedare Bloom wrote: > On Tue, Jul 11, 2023 at 7:05 AM Christian MAUDERER > wrote: > > > > Hello Utkarsh, > > > > please be a bit careful with GPIO and pin functions. That's a quite > > difficult topic. > > > > Some controller manufacturers mix these functions. On

Re: Need community suggestions for a new generic GPIO API

2023-07-11 Thread Gedare Bloom
On Tue, Jul 11, 2023 at 7:05 AM Christian MAUDERER wrote: > > Hello Utkarsh, > > please be a bit careful with GPIO and pin functions. That's a quite > difficult topic. > > Some controller manufacturers mix these functions. One such example is > the STM32 family. I'll take the STM32F410 as an examp

Re: Need community suggestions for a new generic GPIO API

2023-07-11 Thread Christian MAUDERER
Hello Utkarsh, please be a bit careful with GPIO and pin functions. That's a quite difficult topic. Some controller manufacturers mix these functions. One such example is the STM32 family. I'll take the STM32F410 as an example. That chip has a GPIO register block with one GPIOx_MODER where y

Need community suggestions for a new generic GPIO API

2023-07-07 Thread Utkarsh Verma
Dear all, While working on the Raspberry Pi 4 BSP, I realized that the GPIO API could be improved. It seems that last year, a GSoC student worked on introducing a new GPIO API, called GPIO2 to RTEMS. However, it did not get merged. Discussing this topic with my mentor and on RTEMS Discord revealed