mirror of https://github.com/ARMmbed/mbed-os.git
[M487] Remove trailing space in lp_ticker/us_ticker
parent
8b86d44867
commit
bc9c9ca1e2
|
|
@ -103,8 +103,6 @@ void lp_ticker_init(void)
|
||||||
|
|
||||||
// Schedule wakeup to match semantics of lp_ticker_get_compare_match()
|
// Schedule wakeup to match semantics of lp_ticker_get_compare_match()
|
||||||
lp_ticker_set_interrupt(wakeup_tick);
|
lp_ticker_set_interrupt(wakeup_tick);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
timestamp_t lp_ticker_read()
|
timestamp_t lp_ticker_read()
|
||||||
|
|
@ -146,9 +144,9 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
|
||||||
{
|
{
|
||||||
uint32_t delta = timestamp - lp_ticker_read();
|
uint32_t delta = timestamp - lp_ticker_read();
|
||||||
wakeup_tick = timestamp;
|
wakeup_tick = timestamp;
|
||||||
|
|
||||||
TIMER_Stop((TIMER_T *) NU_MODBASE(timer3_modinit.modname));
|
TIMER_Stop((TIMER_T *) NU_MODBASE(timer3_modinit.modname));
|
||||||
|
|
||||||
cd_major_minor_clks = (uint64_t) delta * US_PER_TICK * TMR3_CLK_PER_SEC / US_PER_SEC;
|
cd_major_minor_clks = (uint64_t) delta * US_PER_TICK * TMR3_CLK_PER_SEC / US_PER_SEC;
|
||||||
lp_ticker_arm_cd();
|
lp_ticker_arm_cd();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ void us_ticker_clear_interrupt(void)
|
||||||
void us_ticker_set_interrupt(timestamp_t timestamp)
|
void us_ticker_set_interrupt(timestamp_t timestamp)
|
||||||
{
|
{
|
||||||
TIMER_Stop((TIMER_T *) NU_MODBASE(timer1hires_modinit.modname));
|
TIMER_Stop((TIMER_T *) NU_MODBASE(timer1hires_modinit.modname));
|
||||||
|
|
||||||
uint32_t delta = timestamp - us_ticker_read();
|
uint32_t delta = timestamp - us_ticker_read();
|
||||||
cd_major_minor_us = delta * US_PER_TICK;
|
cd_major_minor_us = delta * US_PER_TICK;
|
||||||
us_ticker_arm_cd();
|
us_ticker_arm_cd();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue