Skip to main content
kilian2399
Associate II
October 19, 2015
Question

Active Low Output GPIO Initialization on STM32F051

  • October 19, 2015
  • 1 reply
  • 635 views
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

    This topic has been closed for replies.

    1 reply

    kilian2399
    Associate II
    October 21, 2015
    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