From 9cb039144a86f61f42cd83ed87b33fc78e6afd51 Mon Sep 17 00:00:00 2001 From: toyowata Date: Thu, 30 Apr 2020 14:23:27 +0900 Subject: [PATCH] [LPC11XX] Disable interrupt in us_ticker_init --- targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c index b0430f3654..7944b87c79 100644 --- a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c +++ b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c @@ -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;