From a0d0ceb336a3495c076b7e6c970bd3c958d9b0b1 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 13 May 2017 03:42:14 +0200 Subject: [PATCH] API compatibility fixes for watchdog configuration structure --- include/core/watchdog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/core/watchdog.h b/include/core/watchdog.h index 6c8ce93..6f54169 100644 --- a/include/core/watchdog.h +++ b/include/core/watchdog.h @@ -38,7 +38,8 @@ #define WDT_TIMER_VAL_LOCK (0x01 << 2) struct wdt_config { - int intr_mode_only; /* If set to 1, a watchdog timeout will trigger an interrupt instead of a reset */ + uint8_t clk_sel; /* Unused, only here for API compatibility */ + uint8_t intr_mode_only; /* If set to 1, a watchdog timeout will trigger an interrupt instead of a reset */ void (*callback)(void); uint32_t locks; /* Bitfield from WDT_*_LOCK defined in watchdog.h */ /* Number of clk_src clocks before the watchdog timer times out. Will be divided by 4 to give -- 2.43.0