diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index 16ed77efff..5268ee033f 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -429,7 +429,9 @@ #define STM32_HAS_GPIOK FALSE #define STM32_GPIO_EN_MASK (RCC_AHB2ENR_GPIOAEN | \ RCC_AHB2ENR_GPIOBEN | \ - RCC_AHB2ENR_GPIOCEN) + RCC_AHB2ENR_GPIOCEN | \ + RCC_AHB2ENR_GPIODEN | \ + RCC_AHB2ENR_GPIOHEN) /* I2C attributes.*/ #define STM32_HAS_I2C1 TRUE @@ -1511,7 +1513,8 @@ RCC_AHB2ENR_GPIOEEN | \ RCC_AHB2ENR_GPIOFEN | \ RCC_AHB2ENR_GPIOGEN | \ - RCC_AHB2ENR_GPIOHEN) + RCC_AHB2ENR_GPIOHEN | \ + RCC_AHB2ENR_GPIOIEN) /* I2C attributes.*/ #define STM32_HAS_I2C1 TRUE diff --git a/readme.txt b/readme.txt index ea4b42edd1..fa21c0928b 100644 --- a/readme.txt +++ b/readme.txt @@ -75,6 +75,7 @@ *** 21.11.3 *** - NEW: Added EFL driver support for STM32F401/411. +- FIX: Fixed missing clock enables for some GPIOS on some STM32L4s (bug #1237). - FIX: Fixed old bugs in serial driver header (bug #1236). - FIX: Fixed virtual timers lockup uder rare conditions (bug #1235). - FIX: Fixed STM32 RTCv2 locks for a second (bug #1234).