From: Nathael Pajani Date: Wed, 26 Oct 2016 13:53:36 +0000 (+0200) Subject: Watchdog - improve memory footprint, uint8_t are enough to store flags. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=02ccaafebb1a7ad97e8f11dbaf4b2e63814b6794;p=soft%2Flpc122x%2Fcore Watchdog - improve memory footprint, uint8_t are enough to store flags. --- diff --git a/include/core/watchdog.h b/include/core/watchdog.h index de6b31e..63e83a8 100644 --- a/include/core/watchdog.h +++ b/include/core/watchdog.h @@ -42,8 +42,8 @@ #define WDT_CLK_WDTCLK 1 struct wdt_config { /* clk_sel is either 0 (IRC) or 1 (WDTCLK). The corresponding clock source will be powered on. */ - int clk_sel; - int intr_mode_only; /* If set to 1, a watchdog timeout will trigger an interrupt instead of a reset */ + uint8_t clk_sel; + 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