Skip to content

Commit cd618e6

Browse files
Ganesh RamachandranGanesh Ramachandran
authored andcommitted
Implemented us_ticker free()
1 parent 7504050 commit cd618e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_TOSHIBA/TARGET_TMPM066/us_ticker.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,9 @@ void us_ticker_clear_interrupt(void)
112112

113113
void us_ticker_free(void)
114114
{
115+
TMRB_SetINTMask(TSB_TB7, TMRB_MASK_MATCH_LEADINGTIMING_INT | TMRB_MASK_MATCH_TRAILINGTIMING_INT | TMRB_MASK_OVERFLOW_INT);
116+
NVIC_ClearPendingIRQ(INTTB7_IRQn);
117+
NVIC_DisableIRQ(INTTB7_IRQn);
118+
TMRB_SetRunState(TSB_TB7, TMRB_STOP);
119+
TMRB_Disable(TSB_TB7);
115120
}

0 commit comments

Comments
 (0)