aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/STM32L4xx/stm32_registry.h')
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_registry.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
index 9c9a9ed78..640753f3b 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
@@ -157,14 +157,14 @@
#define STM32_HAS_GPIOI FALSE
#define STM32_HAS_GPIOJ FALSE
#define STM32_HAS_GPIOK FALSE
-#define STM32_GPIO_EN_MASK (RCC_IOPENR_GPIOAEN | \
- RCC_IOPENR_GPIOBEN | \
- RCC_IOPENR_GPIOCEN | \
- RCC_IOPENR_GPIODEN | \
- RCC_IOPENR_GPIOEEN | \
- RCC_IOPENR_GPIOFEN | \
- RCC_IOPENR_GPIOGEN | \
- RCC_IOPENR_GPIOHEN)
+#define STM32_GPIO_EN_MASK (RCC_AHB2ENR_GPIOAEN | \
+ RCC_AHB2ENR_GPIOBEN | \
+ RCC_AHB2ENR_GPIOCEN | \
+ RCC_AHB2ENR_GPIODEN | \
+ RCC_AHB2ENR_GPIOEEN | \
+ RCC_AHB2ENR_GPIOFEN | \
+ RCC_AHB2ENR_GPIOGEN | \
+ RCC_AHB2ENR_GPIOHEN)
/* I2C attributes.*/
#define STM32_HAS_I2C1 TRUE