File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
targets/TARGET_NORDIC/TARGET_NRF5x Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ void us_ticker_clear_interrupt(void)
137
137
138
138
void us_ticker_free (void )
139
139
{
140
- // A common counter is used for RTC, lp_ticker and us_ticker, so it can't be
141
- // disabled here, but this does not cause any extra cost.
140
+ nrf_timer_task_trigger (NRF_TIMER1 , NRF_TIMER_TASK_STOP );
141
+
142
+ nrf_timer_int_disable (NRF_TIMER1 , nrf_timer_compare_int_get (NRF_TIMER_CC_CHANNEL0 ));
143
+
144
+ us_ticker_initialized = false;
142
145
}
Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ void us_ticker_clear_interrupt(void)
137
137
138
138
void us_ticker_free (void )
139
139
{
140
- // A common counter is used for RTC, lp_ticker and us_ticker, so it can't be
141
- // disabled here, but this does not cause any extra cost.
140
+ nrf_timer_task_trigger (NRF_TIMER1 , NRF_TIMER_TASK_STOP );
141
+
142
+ nrf_timer_int_disable (NRF_TIMER1 , nrf_timer_compare_int_get (NRF_TIMER_CC_CHANNEL0 ));
143
+
144
+ us_ticker_initialized = false;
142
145
}
You can’t perform that action at this time.
0 commit comments