File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2017-2020 Linaro Limited
2
2
# Copyright (c) 2020 Arm Limited
3
+ # Copyright (c) 2023 Nordic Semiconductor ASA
3
4
#
4
5
# SPDX-License-Identifier: Apache-2.0
5
6
#
@@ -665,6 +666,8 @@ config BOOT_WATCHDOG_FEED
665
666
imply NRFX_WDT if SOC_FAMILY_NRF
666
667
imply NRFX_WDT0 if SOC_FAMILY_NRF
667
668
imply NRFX_WDT1 if SOC_FAMILY_NRF
669
+ imply NRFX_WDT30 if SOC_FAMILY_NRF
670
+ imply NRFX_WDT31 if SOC_FAMILY_NRF
668
671
help
669
672
Enables implementation of MCUBOOT_WATCHDOG_FEED() macro which is
670
673
used to feed watchdog while doing time consuming operations.
Original file line number Diff line number Diff line change 329
329
#elif defined(CONFIG_NRFX_WDT0 )
330
330
#define MCUBOOT_WATCHDOG_FEED () \
331
331
FEED_WDT_INST(0);
332
- #else /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
332
+ #elif defined(CONFIG_NRFX_WDT30 ) && defined(CONFIG_NRFX_WDT31 )
333
+ #define MCUBOOT_WATCHDOG_FEED () \
334
+ do { \
335
+ FEED_WDT_INST(30); \
336
+ FEED_WDT_INST(31); \
337
+ } while (0)
338
+ #elif defined(CONFIG_NRFX_WDT30 )
339
+ #define MCUBOOT_WATCHDOG_FEED () \
340
+ FEED_WDT_INST(30);
341
+ #elif defined(CONFIG_NRFX_WDT31 )
342
+ #define MCUBOOT_WATCHDOG_FEED () \
343
+ FEED_WDT_INST(31);
344
+ #else
333
345
#error "No NRFX WDT instances enabled"
334
- #endif /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
346
+ #endif
335
347
336
348
#elif DT_NODE_HAS_STATUS (DT_ALIAS (watchdog0 ), okay ) /* CONFIG_NRFX_WDT */
337
349
#include <zephyr/device.h>
You can’t perform that action at this time.
0 commit comments