From 0fec8098cf1aaf95f3aaf1e49e702cd402790923 Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Mon, 20 Aug 2018 13:20:45 +0300 Subject: [PATCH] Restore lp_ticker_free to previous implementation when running with uvisor This is a temporary patch until uvisor is removed --- targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c index 488f09f2985..9f836db8d54 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c @@ -120,8 +120,10 @@ void lp_ticker_clear_interrupt(void) void lp_ticker_free(void) { +#ifndef FEATURE_UVISOR LPTMR_DisableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable); NVIC_DisableIRQ(LPTMR0_IRQn); +#endif } #endif /* DEVICE_LPTICKER */