mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/stm32/gpio_ll: fix ifdef
APB12 is never defined as a macro. It is an element in the bus_t enum. Therefore, the test to check if it is defined will always fail. APB12 is not a real bus. It is the second register of the APB1 bus. I am not aware of any STM32 family where the ABP2 bus is implmented (ie RCC_APB2ENR_SYSCFGEN is defined) and devices attached to said bus are enabled via the APB1 second register. For this reason, the fix is to simply remove the check.
This commit is contained in:
parent
3c07ebceb6
commit
1b1fbfeb5c
@ -85,12 +85,8 @@
|
||||
# define SYSFG_CLOCK APB2
|
||||
# define SYSFG_ENABLE_MASK RCC_APB2ENR_SYSCFGCOMPEN
|
||||
#elif defined(RCC_APB2ENR_SYSCFGEN)
|
||||
# define SYSFG_CLOCK APB2
|
||||
# define SYSFG_ENABLE_MASK RCC_APB2ENR_SYSCFGEN
|
||||
# ifdef APB12
|
||||
# define SYSFG_CLOCK APB12
|
||||
# else
|
||||
# define SYSFG_CLOCK APB2
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef RCC_APB3ENR_SYSCFGEN
|
||||
|
Loading…
Reference in New Issue
Block a user