Skip to main content
Visitor II
May 26, 2021
Question

How to use the HAL_RTCEx_SetWakeUpTimer_IT function with WakeUpAutoClr argument?

  • May 26, 2021
  • 1 reply
  • 1432 views

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

    This topic has been closed for replies.

    1 reply

    Visitor II
    May 26, 2021

    Hi @CYou.1​ ,

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

    Best Regards,

    Ons