cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the HAL_RTCEx_SetWakeUpTimer_IT function with WakeUpAutoClr argument?

CYou.1
Associate

Hello,

I'm using STM32L4P5 and try to use HAL_RTCEx_SetWakeUpTimer_IT function.

For example, I want to make a wake up timer have 30 minutes.

What value should I use for the WakeUpAutoClr?

HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 1800, RTC_WAKEUPCLOCK_CK_SPRE_16BITS, ?);

Thanks,

Calvin

1 REPLY 1
Ons KOOLI
Senior III

Hi @CYou.1​ ,

Did you have a look at the STM32CubeL4 ? Did you check the RTC and TIM examples ?

Best Regards,

Ons