Driver for managing the watchdog timer (WDT).
More...
|
| #define | NRF_DRV_WDT_DEAFULT_CONFIG |
| |
Driver for managing the watchdog timer (WDT).
| #define NRF_DRV_WDT_DEAFULT_CONFIG |
This function allocate watchdog channel.
- Note
- This function can not be called after nrf_drv_wdt_start(void).
- Parameters
-
| [out] | p_channel_id | ID of granted channel. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.
This function feeds the invidual watchdog channel.
- Parameters
-
| [in] | channel_id | ID of watchdog channel. |
| void nrf_drv_wdt_enable |
( |
void |
| ) |
|
This function starts 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 has to be allocated.
| void nrf_drv_wdt_feed |
( |
void |
| ) |
|
This function feeds the watchdog.
Function feeds all allocated watchdog channels.
This function initializes watchdog.
- Parameters
-
| [in] | p_config | Initial configuration. Default configuration used if NULL. |
| [in] | wdt_event_handler | specifies event handler provided by user. |
- Note
- Function asserts if wdt_event_handler is NULL.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
| __STATIC_INLINE uint32_t nrf_drv_wdt_ppi_event_addr |
( |
nrf_wdt_event_t |
event | ) |
|
Function for returning a requested event address for the wdt driver module.
- Parameters
-
| [in] | event | One of the peripheral events. |
- Return values
-
| __STATIC_INLINE uint32_t nrf_drv_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. |
- Return values
-