Skip to content

Commit 3307098

Browse files
committed
[NANO130] Fix lp_ticker wake-up is incorrectly disabled
1 parent f553277 commit 3307098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NUVOTON/TARGET_NANO100/lp_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ static void lp_ticker_arm_cd(void)
222222
TIMER_EnableWakeup((TIMER_T *) NU_MODBASE(timer3_modinit.modname));
223223
// Wait 2 cycles of engine clock to ensure previous CTL write action is finish
224224
wait_us(30 * 2);
225-
timer3_base->CTL = ctl_timer3 | TIMER_CTL_TMR_EN_Msk;
225+
timer3_base->CTL |= ctl_timer3 | TIMER_CTL_TMR_EN_Msk;
226226
}
227227
#endif

0 commit comments

Comments
 (0)