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.

Table 27-4. Parameters
Data directionParameter nameDescription

[in]

config

Pointer to the configuration struct

Returns

Status of the configuration procedure.

Table 27-5. Return Values
Return valueDescription

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