wdt_init

Initialize the WDT HAL instance and hardware.

static int32_t wdt_init(
    struct wdt_descriptor *const wdt,
    const void * hw
)

Initialize WDT HAL.

Parameters

wdt

Type: struct wdt_descriptor Struct *const

The pointer to the HAL WDT instance.

hw

Type: const void *

The pointer to the hardware instance.

Returns

Type: int32_t

Operation status of init

0

Completed sucessfully.

-1

Always on or enabled, don't need init again.