Fix a error in the previous commit

This commit is contained in:
Gregory Nutt
2016-03-20 14:23:45 -06:00
parent e0249bd025
commit 748edc0445
+7 -7
View File
@@ -183,25 +183,25 @@ static inline void rcc_enableahb2(void)
#if STM32L4_NPORTS > 0 #if STM32L4_NPORTS > 0
regval |= (RCC_AHB2ENR_GPIOAEN regval |= (RCC_AHB2ENR_GPIOAEN
#if STM32L4_NPORTS > 16 #if STM32L4_NPORTS > 1
| RCC_AHB2ENR_GPIOBEN | RCC_AHB2ENR_GPIOBEN
#endif #endif
#if STM32L4_NPORTS > 32 #if STM32L4_NPORTS > 2
| RCC_AHB2ENR_GPIOCEN | RCC_AHB2ENR_GPIOCEN
#endif #endif
#if STM32L4_NPORTS > 48 #if STM32L4_NPORTS > 3
| RCC_AHB2ENR_GPIODEN | RCC_AHB2ENR_GPIODEN
#endif #endif
#if STM32L4_NPORTS > 64 #if STM32L4_NPORTS > 4
| RCC_AHB2ENR_GPIOEEN | RCC_AHB2ENR_GPIOEEN
#endif #endif
#if STM32L4_NPORTS > 80 #if STM32L4_NPORTS > 5
| RCC_AHB2ENR_GPIOFEN | RCC_AHB2ENR_GPIOFEN
#endif #endif
#if STM32L4_NPORTS > 96 #if STM32L4_NPORTS > 6
| RCC_AHB2ENR_GPIOGEN | RCC_AHB2ENR_GPIOGEN
#endif #endif
#if STM32L4_NPORTS > 112 #if STM32L4_NPORTS > 7
| RCC_AHB2ENR_GPIOHEN | RCC_AHB2ENR_GPIOHEN
#endif #endif
); );