-
Notifications
You must be signed in to change notification settings - Fork 3k
Nuvoton: Fix us_ticker/lp_ticker #6394
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
Greentea: NUC472/ARM
Greentea: NUC472/GCC_ARM
Greentea: NUC472/IAR
|
Greentea: M453/ARM
Greentea: M453/GCC_ARM
Greentea: M453/IAR
|
Greentea: M487/ARM
Greentea: M487/GCC_ARM
Greentea: M487/IAR
|
Greentea: NANO130/ARM
Greentea: NANO130/GCC_ARM
Greentea: NANO130/IAR
|
Out of curiosity, why are these 3 fixes in one commit?
|
@0xc0170 It was to check |
@ccli8 So did those three issues need to be fixed all at once to fix the bug, or are these three separate issues, in which only one was needed to fix the bug? |
@cmonr The third one is the major cause for |
@ccli8 Thanks for that clarification. Would you mind splitting up your commit into two to deliniate those differences? |
@cmonr How about fix the commit message? The |
It was not clear how those 3 are related together. I would have guessed based on the list that these could be split. |
…_ticker/lp_ticker
mbed-os-tests-mbed_drivers-lp_ticker/Test multi ticker test fails inconstantly. This commit is mainly to fix the issue.
a49d36d
to
ccec9d7
Compare
/morph build |
Build : SUCCESSBuild number : 1572 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1212 |
Test : SUCCESSBuild number : 1364 |
@@ -115,10 +115,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp) | |||
uint32_t cmp_timer = timestamp * NU_TMRCLK_PER_TICK; | |||
cmp_timer = NU_CLAMP(cmp_timer, TMR_CMP_MIN, TMR_CMP_MAX); | |||
timer_base->CMP = cmp_timer; | |||
|
|||
/* NOTE: When engine is clocked by low power clock source (LXT/LIRC), we need to wait for 3 engine clocks. */ | |||
wait_us((NU_US_PER_SEC / NU_TMRCLK_PER_SEC) * 3); |
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.
Why is this wait still needed? If it's still needed, shouldn't the note/comment still be present?
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.
@cmonr It was needed, but the wait_us
comment was removed inadvertently. In the immediately following commit ccec9d7, all wait_us
comments are moved to the front:
/* NOTE: When system clock is higher than timer clock, we need to add 3 engine clock
* (recommended by designer) delay to wait for above timer control to take effect. */
Description
This PR includes the fixes with us_ticker/lp_ticer:
Pull request type