warning: unused variable in stm32u0xx_hal_rtc.h #3
Labels
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
rtc
Real-Time Clock
Hi
In File stm32u0xx_hal_rtc.h are the following macros:
#define __HAL_RTC_WRITEPROTECTION_DISABLE(HANDLE)
#define __HAL_RTC_WRITEPROTECTION_ENABLE(HANDLE)
#define __HAL_RTC_DAYLIGHT_SAVING_TIME_ADD1H(HANDLE, BKP)
#define __HAL_RTC_DAYLIGHT_SAVING_TIME_SUB1H(HANDLE, BKP)
#define __HAL_RTC_ALARMA_ENABLE(HANDLE)
#define __HAL_RTC_ALARMA_DISABLE(HANDLE)
#define __HAL_RTC_ALARMB_ENABLE(HANDLE)
#define __HAL_RTC_ALARMB_DISABLE(HANDLE)
#define __HAL_RTC_ALARM_ENABLE_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_DISABLE_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_IT_SOURCE(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_FLAG(HANDLE, FLAG)
#define __HAL_RTC_ALARM_CLEAR_FLAG(HANDLE, FLAG)
that access the RTC directly and not with HANDLE.
So we get lot of warning: unused variable.
Please use (HANDLE)->Instance->... instead of RTC->... as in all other cubes (F0-F4, G0,G4,L0-F4) sources.
The text was updated successfully, but these errors were encountered: