Skip to content

Commit 99dda9a

Browse files
authored
Merge pull request #3740 from jeromecoutant/PR_L4_RTC
STM32L4 HAL update for RTC Wake Up Timer
2 parents 69de788 + 2433b1a commit 99dda9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rtc_ex.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,12 @@ HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT(RTC_HandleTypeDef *hrtc, uint32_t
11231123
}
11241124
}
11251125
}
1126-
1126+
/* Disable the Wake-Up timer */
11271127
__HAL_RTC_WAKEUPTIMER_DISABLE(hrtc);
11281128

1129+
/* Clear flag Wake-Up */
1130+
__HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(hrtc, RTC_FLAG_WUTF);
1131+
11291132
tickstart = HAL_GetTick();
11301133

11311134
/* Wait till RTC WUTWF flag is set and if Time out is reached exit */

0 commit comments

Comments
 (0)