[LPC11XX] Disable interrupt in us_ticker_init

pull/12623/head
toyowata 2020-04-30 14:23:27 +09:00
parent 5a57670121
commit 9cb039144a
1 changed files with 3 additions and 0 deletions

View File

@ -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;