Skip to content

Commit

Permalink
cpu/nrf5x_common/periph/wdt: add nRF53 support
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
  • Loading branch information
dylad committed Jul 3, 2023
1 parent 753ed70 commit abcd7db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpu/nrf5x_common/periph/wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
#define NRF_WDT_HALT_MODE (WDT_CONFIG_HALT_Run)
#endif

/* Compatibility wrapper for nRF53 */
#ifdef NRF_WDT0_S
#define NRF_WDT NRF_WDT0_S
#endif

/* Wrapper around vendor files inconsistency */
#ifdef WDT_RUNSTATUS_RUNSTATUSWDT_Running
#define WDT_RUNSTATUS_RUNSTATUS_Running WDT_RUNSTATUS_RUNSTATUSWDT_Running
#endif

#ifdef MODULE_PERIPH_WDT_CB
static wdt_cb_t wdt_cb;
static void *wdt_arg;
Expand Down

0 comments on commit abcd7db

Please sign in to comment.