[riot-notifications] [RIOT-OS/RIOT] cpu/stm32: optimize stop mode for stm32f* (#11758)
notifications at github.com
Tue Jul 2 13:42:36 CEST 2019
> IMO readablility can be improved by a) seperating the two switch cases, and b) turning the "DISABLE_JTAG" test into a C-level if statement:
Thanks for the suggestion, I was thinking the same thing. I applied the diff.
Also I removed the break a because I realized for some cpu's GPIO's are not in a sequential order so I need to check all ports and not break immediately. e.g. "stm32f410"
#define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000U)
#define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400U)
#define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800U)
#define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00U)
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications