Skip to content

Commit fd80949

Browse files
committed
Removed a set NVIC priority call, added code to clear benign us timer timeout interrupt.
1 parent 470a6ae commit fd80949

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/lp_ticker.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ void lp_ticker_init()
5252
}
5353
if (!rtc_inited) {
5454
NVIC_SetVector(INT_PRCM_IRQn, (uint32_t)lp_ticker_irq_handler);
55-
// Set priority to highest 0
56-
NVIC_SetPriority(INT_PRCM_IRQn, 0);
5755
NVIC_ClearPendingIRQ(INT_PRCM_IRQn);
5856
NVIC_EnableIRQ(INT_PRCM_IRQn);
5957
PRCMIntStatus(); // Read clears pending interrupts

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/us_ticker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void us_ticker_init(void)
5656
// Disable match interrupt. This is mbed OS requirement.
5757
TimerIntDisable(TIMERA0_BASE, TIMER_TIMA_MATCH);
5858
// Clear pending interrupt
59-
TimerIntClear(TIMERA0_BASE, TIMER_TIMA_MATCH);
59+
TimerIntClear(TIMERA0_BASE, TIMER_TIMA_MATCH | TIMER_TIMA_TIMEOUT);
6060
}
6161
}
6262

@@ -80,7 +80,7 @@ void us_ticker_disable_interrupt(void)
8080

8181
void us_ticker_clear_interrupt(void)
8282
{
83-
TimerIntClear(TIMERA0_BASE, TIMER_TIMA_MATCH);
83+
TimerIntClear(TIMERA0_BASE, TIMER_TIMA_MATCH | TIMER_TIMA_TIMEOUT);
8484
}
8585

8686
void us_ticker_fire_interrupt(void)

0 commit comments

Comments
 (0)