Skip to content

Commit 604d305

Browse files
Oren CohenCruz Monrreal II
authored andcommitted
Restore lp_ticker_free to previous implementation when running with uvisor
This is a temporary patch until uvisor is removed
1 parent 8c53238 commit 604d305

File tree

1 file changed

+8
-0
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api

1 file changed

+8
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/lp_ticker.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,12 @@ void lp_ticker_clear_interrupt(void)
117117
LPTMR_ClearStatusFlags(LPTMR0, kLPTMR_TimerCompareFlag);
118118
}
119119

120+
void lp_ticker_free(void)
121+
{
122+
#ifndef FEATURE_UVISOR
123+
LPTMR_DisableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable);
124+
NVIC_DisableIRQ(LPTMR0_IRQn);
125+
#endif
126+
}
127+
120128
#endif /* DEVICE_LPTICKER */

0 commit comments

Comments
 (0)