mirror of https://github.com/ARMmbed/mbed-os.git
[LPC11XX] Disable interrupt in us_ticker_init
parent
5a57670121
commit
9cb039144a
|
@ -23,6 +23,9 @@
|
|||
int us_ticker_inited = 0;
|
||||
|
||||
void us_ticker_init(void) {
|
||||
// First, disabled interrupt
|
||||
US_TICKER_TIMER->MCR &= ~1;
|
||||
|
||||
if (us_ticker_inited) return;
|
||||
us_ticker_inited = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue