File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,8 @@ config BOOT_WATCHDOG_FEED
576
576
imply NRFX_WDT if SOC_FAMILY_NRF
577
577
imply NRFX_WDT0 if SOC_FAMILY_NRF
578
578
imply NRFX_WDT1 if SOC_FAMILY_NRF
579
+ imply NRFX_WDT30 if SOC_FAMILY_NRF
580
+ imply NRFX_WDT31 if SOC_FAMILY_NRF
579
581
help
580
582
Enables implementation of MCUBOOT_WATCHDOG_FEED() macro which is
581
583
used to feed watchdog while doing time consuming operations.
Original file line number Diff line number Diff line change 286
286
#elif defined(CONFIG_NRFX_WDT0 )
287
287
#define MCUBOOT_WATCHDOG_FEED () \
288
288
FEED_WDT_INST(0);
289
- #else /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
289
+ #elif defined(CONFIG_NRFX_WDT30 ) && defined(CONFIG_NRFX_WDT31 )
290
+ #define MCUBOOT_WATCHDOG_FEED () \
291
+ do { \
292
+ FEED_WDT_INST(30); \
293
+ FEED_WDT_INST(31); \
294
+ } while (0)
295
+ #elif defined(CONFIG_NRFX_WDT30 )
296
+ #define MCUBOOT_WATCHDOG_FEED () \
297
+ FEED_WDT_INST(30);
298
+ #elif defined(CONFIG_NRFX_WDT31 )
299
+ #define MCUBOOT_WATCHDOG_FEED () \
300
+ FEED_WDT_INST(31);
301
+ #else
290
302
#error "No NRFX WDT instances enabled"
291
- #endif /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
303
+ #endif
292
304
293
305
#elif CONFIG_IWDG_STM32 /* CONFIG_NRFX_WDT */
294
306
#include <zephyr/device.h>
You can’t perform that action at this time.
0 commit comments