cancel
Showing results for 
Search instead for 
Did you mean: 

Active Low Output GPIO Initialization on STM32F051

kilian2399
Associate II
Posted on October 19, 2015 at 10:38

Hi,

I would like to make sure that an active low signal is inactive when I call GPIO_Init().

My first idea is to set the ODR register via BRR/BSRR, i.e. with the GPIO_WriteBit() call before I call GPIO_Init().

Will that work or do I have to set the ODR register directly. Beyond that, what is the proper way of dealing with the active low situation.

I hope you can help,

Kilian

1 REPLY 1
kilian2399
Associate II
Posted on October 21, 2015 at 09:29

Hi,

I tried using the GPIO_WriteBit() call before GPIO_Init() and it works as hoped for.

Regards,

Kilian