mirror of https://github.com/ARMmbed/mbed-os.git
[Nuvoton] Remove unnecessary TIMER_Start in the end of lp_ticker_set_interrupt
parent
f67fe4a7a3
commit
3cd8d3df9f
|
@ -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);
|
||||
TIMER_Start(timer_base);
|
||||
}
|
||||
|
||||
void lp_ticker_disable_interrupt(void)
|
||||
|
|
|
@ -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);
|
||||
TIMER_Start(timer_base);
|
||||
}
|
||||
|
||||
void lp_ticker_disable_interrupt(void)
|
||||
|
|
|
@ -117,10 +117,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->CMPR = 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);
|
||||
TIMER_Start(timer_base);
|
||||
}
|
||||
|
||||
void lp_ticker_disable_interrupt(void)
|
||||
|
|
|
@ -114,10 +114,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);
|
||||
TIMER_Start(timer_base);
|
||||
}
|
||||
|
||||
void lp_ticker_disable_interrupt(void)
|
||||
|
|
Loading…
Reference in New Issue