Active Low Output GPIO Initialization on STM32F051
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-10-19 1:38 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-10-21 12:29 AM
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