cancel
Showing results for 
Search instead for 
Did you mean: 

Missing x in content of the LL_RTC_ALMB_SetDay of the stm32u0xx_ll_rtc.h

Joste
Associate

In function LL_RTC_ALMB_SetDay of file stm32u0xx_ll_rtc.h line 2198 

 

Original:

__STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
{
MODIFY_REG(RTC->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU),
(((Day & 0xF0U) << (RTC_ALRMBR_DT_Pos - 4U)) | ((Day & 0x0FU) << RTC_ALRMBR_DU_Pos)));
}

 

Missing x in RTC->ALRMBR

 

__STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
{
MODIFY_REG(RTCx->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU),
(((Day & 0xF0U) << (RTC_ALRMBR_DT_Pos - 4U)) | ((Day & 0x0FU) << RTC_ALRMBR_DU_Pos)));
}

 

Personal opinion: I would recommend compiling code with the -Wall, -Wextra, and -pedantic compiler flags.
From my point of view, confidence in the quality of code that contains such easily detectable errors is greatly limited. For this reason, I prefer not to use HAL drivers.

 

1 REPLY 1
Saket_Om
ST Employee

Hello @Joste 

Thank you for bringing this issue to our attention.

I reported this internally.

Internal ticket number: 215106 (This is an internal tracking number and is not accessible or usable by customers).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om