Skip to content

Commit 85a1139

Browse files
ccli8adbridge
authored andcommitted
Remove unnecessary TIMER_Start in the end of lp_ticker_set_interrupt
1 parent f645ba5 commit 85a1139

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

targets/TARGET_NUVOTON/TARGET_M451/lp_ticker.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
115115
uint32_t cmp_timer = timestamp * NU_TMRCLK_PER_TICK;
116116
cmp_timer = NU_CLAMP(cmp_timer, TMR_CMP_MIN, TMR_CMP_MAX);
117117
timer_base->CMP = cmp_timer;
118-
119-
/* NOTE: When engine is clocked by low power clock source (LXT/LIRC), we need to wait for 3 engine clocks. */
120118
wait_us((NU_US_PER_SEC / NU_TMRCLK_PER_SEC) * 3);
121-
TIMER_Start(timer_base);
122119
}
123120

124121
void lp_ticker_disable_interrupt(void)

targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
115115
uint32_t cmp_timer = timestamp * NU_TMRCLK_PER_TICK;
116116
cmp_timer = NU_CLAMP(cmp_timer, TMR_CMP_MIN, TMR_CMP_MAX);
117117
timer_base->CMP = cmp_timer;
118-
119-
/* NOTE: When engine is clocked by low power clock source (LXT/LIRC), we need to wait for 3 engine clocks. */
120118
wait_us((NU_US_PER_SEC / NU_TMRCLK_PER_SEC) * 3);
121-
TIMER_Start(timer_base);
122119
}
123120

124121
void lp_ticker_disable_interrupt(void)

targets/TARGET_NUVOTON/TARGET_NANO100/lp_ticker.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
117117
uint32_t cmp_timer = timestamp * NU_TMRCLK_PER_TICK;
118118
cmp_timer = NU_CLAMP(cmp_timer, TMR_CMP_MIN, TMR_CMP_MAX);
119119
timer_base->CMPR = cmp_timer;
120-
121-
/* NOTE: When engine is clocked by low power clock source (LXT/LIRC), we need to wait for 3 engine clocks. */
122120
wait_us((NU_US_PER_SEC / NU_TMRCLK_PER_SEC) * 3);
123-
TIMER_Start(timer_base);
124121
}
125122

126123
void lp_ticker_disable_interrupt(void)

targets/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
114114
uint32_t cmp_timer = timestamp * NU_TMRCLK_PER_TICK;
115115
cmp_timer = NU_CLAMP(cmp_timer, TMR_CMP_MIN, TMR_CMP_MAX);
116116
timer_base->CMP = cmp_timer;
117-
118-
/* NOTE: When engine is clocked by low power clock source (LXT/LIRC), we need to wait for 3 engine clocks. */
119117
wait_us((NU_US_PER_SEC / NU_TMRCLK_PER_SEC) * 3);
120-
TIMER_Start(timer_base);
121118
}
122119

123120
void lp_ticker_disable_interrupt(void)

0 commit comments

Comments
 (0)