Skip to content

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

Merged
merged 1 commit into from
Mar 20, 2018

Conversation

jeromecoutant
Copy link
Collaborator

@jeromecoutant jeromecoutant commented Mar 15, 2018

Description

Division in a while loop is removed

You can read the study here:
#6272 (comment)

@marcemmers

Pull request type

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

0xc0170
0xc0170 previously approved these changes Mar 15, 2018
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");
Copy link
Contributor

@marcemmers marcemmers Mar 15, 2018

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
@cmonr
Copy link
Contributor

cmonr commented Mar 19, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 19, 2018

Build : SUCCESS

Build number : 1482
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6370/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants