From: Nathael Pajani Date: Sat, 13 May 2017 01:42:14 +0000 (+0200) Subject: API compatibility fixes for watchdog configuration structure X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=a0d0ceb336a3495c076b7e6c970bd3c958d9b0b1;p=soft%2Flpc82x%2Fcore API compatibility fixes for watchdog configuration structure --- 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