mirror of https://github.com/ARMmbed/mbed-os.git
TARGET_MCUXpresso_MCUS: fix lp ticker init function
In case when lp ticker is already initialized the ticker interrupt should be disabled.pull/8827/head
parent
9aef9d3661
commit
f05d642422
|
@ -63,8 +63,7 @@ void lp_ticker_init(void)
|
|||
|
||||
lp_ticker_inited = true;
|
||||
} else {
|
||||
LPTMR_DisableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable);
|
||||
NVIC_EnableIRQ(LPTMR0_IRQn);
|
||||
lp_ticker_disable_interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue