wdt_get_timeout_period

Get the timeout period for WDT HAL instance and hardware.

static uint32_t wdt_get_timeout_period(
    struct wdt_descriptor *const wdt,
    const uint32_t clk_rate
)

Parameters

wdt

Type: struct wdt_descriptor Struct *const

The pointer to the HAL WDT instance.

clk_rate

Type: const uint32_t

The current clock rate of generic clock (GCLK_WDT) in Hz

Returns

Type: uint32_t

Current timeout period(ms)

-1

Invalid timeout period