Watchdog Timer (WDT) peripheral driver.
More...
Watchdog Timer (WDT) peripheral driver.
| #define NRFX_WDT_DEAFULT_CONFIG |
Value:
WDT driver default configuration.
Function for allocating a watchdog channel.
- Note
- This function can not be called after nrfx_wdt_start(void).
- Parameters
-
| [out] | p_channel_id | ID of granted channel. |
- Returns
- NRFX_SUCCESS on success, otherwise an error code.
Function for feeding an invidual watchdog channel.
- Parameters
-
| [in] | channel_id | ID of watchdog channel. |
| void nrfx_wdt_enable |
( |
void |
| ) |
|
Function for starting the watchdog.
- Note
- After calling this function the watchdog is started, so the user needs to feed all allocated watchdog channels to avoid reset. At least one watchdog channel must be allocated.
| void nrfx_wdt_feed |
( |
void |
| ) |
|
Function for feeding the watchdog.
Function feeds all allocated watchdog channels.
This function initializes the watchdog.
- Parameters
-
| [in] | p_config | Pointer to the structure with the initial configuration. |
| [in] | wdt_event_handler | Event handler provided by the user. Ignored when NRFX_WDT_CONFIG_NO_IRQ option is enabled. |
- Returns
- NRFX_SUCCESS on success, otherwise an error code.
Function for returning a requested event address for the wdt driver module.
- Parameters
-
| [in] | event | One of the peripheral events. |
- Returns
- Event address.
| __STATIC_INLINE uint32_t nrfx_wdt_ppi_task_addr |
( |
nrf_wdt_task_t |
task | ) |
|
Function for returning a requested task address for the WDT driver module.
- Parameters
-
| [in] | task | One of the peripheral tasks. |
- Returns
- Task address.