File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
targets/TARGET_NUVOTON/TARGET_M480 Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ void lp_ticker_init(void)
103
103
104
104
// Schedule wakeup to match semantics of lp_ticker_get_compare_match()
105
105
lp_ticker_set_interrupt (wakeup_tick );
106
-
107
-
108
106
}
109
107
110
108
timestamp_t lp_ticker_read ()
@@ -146,9 +144,9 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
146
144
{
147
145
uint32_t delta = timestamp - lp_ticker_read ();
148
146
wakeup_tick = timestamp ;
149
-
147
+
150
148
TIMER_Stop ((TIMER_T * ) NU_MODBASE (timer3_modinit .modname ));
151
-
149
+
152
150
cd_major_minor_clks = (uint64_t ) delta * US_PER_TICK * TMR3_CLK_PER_SEC / US_PER_SEC ;
153
151
lp_ticker_arm_cd ();
154
152
}
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ void us_ticker_clear_interrupt(void)
146
146
void us_ticker_set_interrupt (timestamp_t timestamp )
147
147
{
148
148
TIMER_Stop ((TIMER_T * ) NU_MODBASE (timer1hires_modinit .modname ));
149
-
149
+
150
150
uint32_t delta = timestamp - us_ticker_read ();
151
151
cd_major_minor_us = delta * US_PER_TICK ;
152
152
us_ticker_arm_cd ();
You can’t perform that action at this time.
0 commit comments