diff --git a/cpu/nrf5x_common/periph/wdt.c b/cpu/nrf5x_common/periph/wdt.c index 95c3f3cefed89..cf53c5bff1dae 100644 --- a/cpu/nrf5x_common/periph/wdt.c +++ b/cpu/nrf5x_common/periph/wdt.c @@ -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;