Initialize the driver
Informative
How to bring the watchdog driver up. Binding rules: CHI-WDG-MUST-04 in Wdg — Requirements; signatures in API Reference.
Prerequisites
Before Wdg_Init, another module must have set up the watchdog’s operation clock (and, for an
external watchdog, the bus driver it is controlled through). For the logical strategy, the upper
layer also owns the timer used to call Wdg_FeedHw.
Bring the watchdog up
Wdg_Init(NULL_PTR); /* initialises the driver + watchdog HW */
configPtr must be NULL_PTR — the configuration variant is selected at build time, not
passed at runtime. Wdg_Init initialises the WdgDrv and the watchdog hardware, applying the
configured default mode and initial timeout. After it returns, the watchdog is armed and
must be serviced (see Refresh the timeout).
Note
The WdgDrv has no de-init and is typically a single instance per watchdog. Calling a service
API before Wdg_Init — or calling Wdg_Init twice — raises WDG_DEVERR_DRIVER_STATE.
See also
Refresh the timeout — refreshing the reset timeout; Watchdog modes — switching watchdog mode.