WDT driver - legacy layer

nRF5 SDK v17.0.2

A layer providing compatibility with former API. More...

Macros

#define NRF_DRV_WDT_DEAFULT_CONFIG NRFX_WDT_DEAFULT_CONFIG
Macro for forwarding the new implementation.
#define nrf_wdt_event_handler_t nrfx_wdt_event_handler_t
Macro for forwarding the new implementation.
#define nrf_drv_wdt_channel_id nrfx_wdt_channel_id
Macro for forwarding the new implementation.
#define nrf_drv_wdt_channel_alloc nrfx_wdt_channel_alloc
Macro for forwarding the new implementation.
#define nrf_drv_wdt_enable nrfx_wdt_enable
Macro for forwarding the new implementation.
#define nrf_drv_wdt_feed nrfx_wdt_feed
Macro for forwarding the new implementation.
#define nrf_drv_wdt_channel_feed nrfx_wdt_channel_feed
Macro for forwarding the new implementation.
#define nrf_drv_wdt_ppi_task_addr nrfx_wdt_ppi_task_addr
Macro for forwarding the new implementation.
#define nrf_drv_wdt_ppi_event_addr nrfx_wdt_ppi_event_addr
Macro for forwarding the new implementation.

Typedefs

typedef nrfx_wdt_config_t nrf_drv_wdt_config_t
Type definition for forwarding the new implementation.

Functions

__STATIC_INLINE ret_code_t nrf_drv_wdt_init ( nrf_drv_wdt_config_t const *p_config, nrfx_wdt_event_handler_t wdt_event_handler)
This function initializes watchdog. More...

Detailed Description

A layer providing compatibility with former API.

Function Documentation

__STATIC_INLINE ret_code_t nrf_drv_wdt_init ( nrf_drv_wdt_config_t const * p_config ,
nrfx_wdt_event_handler_t wdt_event_handler
)

This function initializes watchdog.

Parameters
[in] p_config Pointer to the structure with 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.