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 @@ -565,6 +565,8 @@ config BOOT_WATCHDOG_FEED
565
565
imply NRFX_WDT if SOC_FAMILY_NRF
566
566
imply NRFX_WDT0 if SOC_FAMILY_NRF
567
567
imply NRFX_WDT1 if SOC_FAMILY_NRF
568
+ imply NRFX_WDT30 if SOC_FAMILY_NRF
569
+ imply NRFX_WDT31 if SOC_FAMILY_NRF
568
570
help
569
571
Enables implementation of MCUBOOT_WATCHDOG_FEED() macro which is
570
572
used to feed watchdog while doing time consuming operations.
Original file line number Diff line number Diff line change 283
283
#elif defined(CONFIG_NRFX_WDT0 )
284
284
#define MCUBOOT_WATCHDOG_FEED () \
285
285
FEED_WDT_INST(0);
286
- #else /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
286
+ #elif defined(CONFIG_NRFX_WDT30 ) && defined(CONFIG_NRFX_WDT31 )
287
+ #define MCUBOOT_WATCHDOG_FEED () \
288
+ do { \
289
+ FEED_WDT_INST(30); \
290
+ FEED_WDT_INST(31); \
291
+ } while (0)
292
+ #elif defined(CONFIG_NRFX_WDT30 )
293
+ #define MCUBOOT_WATCHDOG_FEED () \
294
+ FEED_WDT_INST(30);
295
+ #elif defined(CONFIG_NRFX_WDT31 )
296
+ #define MCUBOOT_WATCHDOG_FEED () \
297
+ FEED_WDT_INST(31);
298
+ #else
287
299
#error "No NRFX WDT instances enabled"
288
- #endif /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
300
+ #endif
289
301
290
302
#elif CONFIG_IWDG_STM32 /* CONFIG_NRFX_WDT */
291
303
#include <zephyr/device.h>
You can’t perform that action at this time.
0 commit comments