1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/dose: make use of TIM_FLAG_SET_STOPPED

This commit is contained in:
Benjamin Valentin 2022-03-01 14:29:23 +01:00
parent f731e595bc
commit 4b5858bc7f

View File

@ -177,8 +177,8 @@ static void _dose_watchdog_cb(void *arg, int chan)
static void _watchdog_init(unsigned timeout_us)
{
timer_init(DOSE_TIMER_DEV, US_PER_SEC, _dose_watchdog_cb, NULL);
timer_set_periodic(DOSE_TIMER_DEV, 0, timeout_us, TIM_FLAG_RESET_ON_MATCH);
timer_stop(DOSE_TIMER_DEV);
timer_set_periodic(DOSE_TIMER_DEV, 0, timeout_us,
TIM_FLAG_RESET_ON_MATCH | TIM_FLAG_SET_STOPPED);
}
#else
static inline void _watchdog_start(void) {}