diff --git a/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h b/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h index af5ef271..80c40260 100644 --- a/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h +++ b/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h @@ -75,7 +75,7 @@ /*#define HAL_SMBUS_MODULE_ENABLED */ #define HAL_SPI_MODULE_ENABLED /*#define HAL_SRAM_MODULE_ENABLED */ -#define HAL_TIM_MODULE_ENABLED */ +#define HAL_TIM_MODULE_ENABLED /*#define HAL_TSC_MODULE_ENABLED */ /*#define HAL_RAMCFG_MODULE_ENABLED */ #define HAL_UART_MODULE_ENABLED diff --git a/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c b/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c index 20ad0113..ac3ff41b 100644 --- a/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c +++ b/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c @@ -201,8 +201,8 @@ void hal_rtc_init( void ) time.Seconds = 0; time.SubSeconds = 0; time.TimeFormat = 0; - time.StoreOperation = RTC_DAYLIGHTSAVING_NONE; - time.DayLightSaving = RTC_STOREOPERATION_RESET; + time.StoreOperation = RTC_STOREOPERATION_RESET; + time.DayLightSaving = RTC_DAYLIGHTSAVING_NONE; HAL_RTC_SetTime( &hal_rtc_handle, &time, RTC_FORMAT_BIN ); // Enable Direct Read of the calendar registers (not through Shadow