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

drivers/wdt: Add feature to indicate a configurable warning period

This adds the feature `periph_wdt_warning_period` that indicates that a
platform WDT driver implementation supports a configurable
CONFIG_WDT_WARNING_PERIOD.
This commit is contained in:
Leandro Lanzieri 2020-06-02 12:54:25 +02:00
parent bdeec688f5
commit 48759eccdc
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,6 @@ FEATURES_PROVIDED += periph_i2c_reconfigure
FEATURES_PROVIDED += periph_timer_periodic # implements timer_set_periodic()
FEATURES_PROVIDED += periph_uart_modecfg
FEATURES_PROVIDED += periph_uart_nonblocking
FEATURES_PROVIDED += periph_wdt periph_wdt_cb
FEATURES_PROVIDED += periph_wdt periph_wdt_cb periph_wdt_warning_period
-include $(RIOTCPU)/cortexm_common/Makefile.features

View File

@ -112,9 +112,10 @@
* for details on its constraints.
*
* The callback will be executed CONFIG_WDT_WARNING_PERIOD before the actual reboot.
* The value of CONFIG_WDT_WARNING_PERIOD may be configurable or a fixed value. But is
* in any case defined at compile time. Specific platform implementation should
* assert improper values.
* The value of CONFIG_WDT_WARNING_PERIOD may be configurable or a fixed value. If
* a platform allows this value to be configured, the feature
* `periph_wdt_warning_period` is provided. But is in any case defined at
* compile time. Specific platform implementation should assert improper values.
*
*
* In the code snippet and diagram `time` is an arbitrary value such that