diff --git a/os/hal/ports/STM32/STM32F0xx/hal_lld.h b/os/hal/ports/STM32/STM32F0xx/hal_lld.h index 5022a82a3..6dccfb53c 100644 --- a/os/hal/ports/STM32/STM32F0xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32F0xx/hal_lld.h @@ -610,6 +610,8 @@ #error "STM32_LSEDRV outside acceptable range ((0<<3)...(3<<3))" #endif +#else /* !STM32_LSE_ENABLED */ + #if STM32_CECSW == STM32_CECSW_LSE #error "LSE not enabled, required by STM32_CECSW" #endif @@ -618,8 +620,6 @@ #error "LSE not enabled, required by STM32_USART1SW" #endif -#else /* !STM32_LSE_ENABLED */ - #if STM32_RTCSEL == STM32_RTCSEL_LSE #error "LSE not enabled, required by STM32_RTCSEL" #endif diff --git a/readme.txt b/readme.txt index beafd7b57..0675db5df 100644 --- a/readme.txt +++ b/readme.txt @@ -73,6 +73,7 @@ ***************************************************************************** *** 16.1.6 *** +- HAL: Fixed misplaced else in STM32F0 port (bug #805). - HAL: Fixed flash waiting state misconfiguration in STM32L4 port (bug #804). - HAL: Added CR field to DAC configuration in STM32 port (bug #803). - HAL: Fixed wrong initialization for DACD4 in STM32 port (bug #802).