-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32 LPTICKER : optimize RTC wake up timer init #6370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
targets/TARGET_STM/rtc_api.c
Outdated
if (HAL_RTCEx_SetWakeUpTimer_IT(&RtcHandle, 0xFFFF & WakeUpCounter, WakeUpClock[DivIndex - 1]) != HAL_OK) { | ||
error("rtc_set_wake_up_timer init error (%d)\n", DivIndex); | ||
if (HAL_RTCEx_SetWakeUpTimer_IT(&RtcHandle, (uint32_t)WakeUpCounter, WakeUpClock) != HAL_OK) { | ||
error("rtc_set_wake_up_timer init error"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of nitpicking but you forgot the '\n' in the error.
Otherwise looks ok!
Division in a while loop is removed
281ac85
to
882f331
Compare
/morph build |
Build : SUCCESSBuild number : 1482 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1127 |
Test : SUCCESSBuild number : 1267 |
Description
Division in a while loop is removed
You can read the study here:
#6272 (comment)
@marcemmers
Pull request type