Skip to content

Commit f05d642

Browse files
committed
TARGET_MCUXpresso_MCUS: fix lp ticker init function
In case when lp ticker is already initialized the ticker interrupt should be disabled.
1 parent 9aef9d3 commit f05d642

File tree

1 file changed

+1
-2
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api

1 file changed

+1
-2
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ void lp_ticker_init(void)
6363

6464
lp_ticker_inited = true;
6565
} else {
66-
LPTMR_DisableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable);
67-
NVIC_EnableIRQ(LPTMR0_IRQn);
66+
lp_ticker_disable_interrupt();
6867
}
6968
}
7069

0 commit comments

Comments
 (0)