27.6.3.1.3 Function wdt_set_config()
Sets up the WDT hardware module based on the configuration.
enum status_code wdt_set_config( const struct wdt_conf *const config)
Writes a given configuration of a WDT configuration to the hardware module, and initializes the internal device struct.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
config |
Pointer to the configuration struct |
Returns
Status of the configuration procedure.
| Return value | Description |
|---|---|
|
STATUS_OK |
If the module was configured correctly |
|
STATUS_ERR_INVALID_ARG |
If invalid argument(s) were supplied |
|
STATUS_ERR_IO |
If the Watchdog module is locked to be always on |
