diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-04-12 13:28:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-14 02:48:03 +0000 |
commit | 860785ae57ded46a3adb81ec608df4b470fecb18 (patch) | |
tree | 4bf7952dd7e925a3e464afc51345b4cfbb7f783b /include/config.h | |
parent | 7327a8e2a8a9dc1b7d8bebcda4a60ad07a4583e7 (diff) | |
download | chrome-ec-860785ae57ded46a3adb81ec608df4b470fecb18.tar.gz |
watchdog: Add config for the leading time of warning timer
Originally, the config CONFIG_AUX_TIMER_PERIOD_MS uses hard-coded for
the leading time of the warning timer. Add config for the leading
time.
BUG=none
BRANCH=none
TEST=ALLOW_CONFIG=1 make buildall
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: If4b15ffc12dbb11d3782c875eaa6c35b51105901
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821109
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/config.h b/include/config.h index 6ba50d3855..ce26484076 100644 --- a/include/config.h +++ b/include/config.h @@ -5002,11 +5002,15 @@ /* Watchdog period in ms; see also AUX_TIMER_PERIOD_MS */ #define CONFIG_WATCHDOG_PERIOD_MS 1600 +/* The leading time of watchdog warning timer. */ +#define CONFIG_WATCHDOG_WARNING_LEADING_TIME_MS 500 + /* - * Fire auxiliary timer 500ms before watchdog timer expires. This leaves - * some time for debug trace to be printed. + * Fire auxiliary timer before watchdog timer expires. This leaves some time for + * debug trace to be printed. */ -#define CONFIG_AUX_TIMER_PERIOD_MS (CONFIG_WATCHDOG_PERIOD_MS - 500) +#define CONFIG_AUX_TIMER_PERIOD_MS \ + (CONFIG_WATCHDOG_PERIOD_MS - CONFIG_WATCHDOG_WARNING_LEADING_TIME_MS) /*****************************************************************************/ /* WebUSB config */ |