Skip to content

Commit 9cb0391

Browse files
committed
[LPC11XX] Disable interrupt in us_ticker_init
1 parent 5a57670 commit 9cb0391

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
int us_ticker_inited = 0;
2424

2525
void us_ticker_init(void) {
26+
// First, disabled interrupt
27+
US_TICKER_TIMER->MCR &= ~1;
28+
2629
if (us_ticker_inited) return;
2730
us_ticker_inited = 1;
2831

0 commit comments

Comments
 (0)