Commit 033c7eb
committed
fix: RTC Alarm with Lowpower (example STM32LowPower -> TimedWakeup)
* RTC_initClock() must be called after reset of backup domain
* NVIC interrupt enable is done within RTC_StartAlarm()
to avoid cases where alarm is pending but never cleared by ISR handler
* STM32RTC::begin() should get format parameter instead of period
* If timer is not already set, configure an arbitrary time for Lowpower usage
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>1 parent a2793ad commit 033c7eb
2 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
| 951 | + | |
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
| |||
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
| 655 | + | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
0 commit comments