[PATCH] Proposal for new GPIO API and example implementation for STM32F4 BSP

Duc Doan dtbpkmte at gmail.com
Sun Jun 26 08:20:56 UTC 2022


Hello Christian,

On Sun, 2022-06-26 at 09:50 +0200, oss at c-mauderer.de wrote:
> Is setting the pull really independent of the mode? Most controller
> that 
> I know have a pull-Up only on Inputs. Sometimes on an Open-Drain
> output. 
> Sometimes in another controller (but you might ignore that option). 
> Somethimes you can also set a different strength like 10k pull-up or 
> 100k pull-up.
> 
> Best regards
> 
> Christian

On STM32 I saw that there is open drain output, so pull resister could
be necessary. I think separating the pull from the mode makes it more
flexible without complicating the configuration too much. About the
strength, I think it should be in the BSP/driver-specific configuration
structure because not every controller has it.

Best,

Duc Doan


More information about the devel mailing list