From 4f04ae489eb4430ed55c50a563f9bcee5e312501 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Thu, 28 Jun 2018 16:34:45 +0800 Subject: [PATCH] [Nuvoton] Synchronize lp_ticker code to us_ticker This is to make us_ticker/lp_ticker code consistent. --- targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c | 1 - targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c | 1 - targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c | 1 - targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c | 1 - 4 files changed, 4 deletions(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c b/targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c index 7a5deaea56..0fadea09de 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c @@ -177,7 +177,6 @@ const ticker_info_t* us_ticker_get_info() static void tmr0_vec(void) { us_ticker_clear_interrupt(); - us_ticker_disable_interrupt(); // NOTE: us_ticker_set_interrupt() may get called in us_ticker_irq_handler(); us_ticker_irq_handler(); diff --git a/targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c b/targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c index 911f912d8b..1441cf26b3 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c +++ b/targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c @@ -177,7 +177,6 @@ const ticker_info_t* us_ticker_get_info() static void tmr0_vec(void) { us_ticker_clear_interrupt(); - us_ticker_disable_interrupt(); // NOTE: us_ticker_set_interrupt() may get called in us_ticker_irq_handler(); us_ticker_irq_handler(); diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c b/targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c index 59628ddded..0c5160d839 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c @@ -179,7 +179,6 @@ const ticker_info_t* us_ticker_get_info() void TMR0_IRQHandler(void) { us_ticker_clear_interrupt(); - us_ticker_disable_interrupt(); // NOTE: us_ticker_set_interrupt() may get called in us_ticker_irq_handler(); us_ticker_irq_handler(); diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c b/targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c index 8d83bf813d..03e58bac60 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c @@ -176,7 +176,6 @@ const ticker_info_t* us_ticker_get_info() static void tmr0_vec(void) { us_ticker_clear_interrupt(); - us_ticker_disable_interrupt(); // NOTE: us_ticker_set_interrupt() may get called in us_ticker_irq_handler(); us_ticker_irq_handler();