Skip to content

Commit e89f02f

Browse files
committed
Add watchdog patches for nRF52 boards
1 parent c0ae094 commit e89f02f

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 2230dbfabcbdb1d6fc861a2475937cf407b184a9 Mon Sep 17 00:00:00 2001
2+
From: Giampaolo Mancini <giampaolo@trampolineup.com>
3+
Date: Fri, 29 Apr 2022 17:12:22 +0200
4+
Subject: [PATCH 158/159] Enable Watchdog for ARDUINO_NANO33BLE
5+
6+
---
7+
targets/targets.json | 1 +
8+
1 file changed, 1 insertion(+)
9+
10+
diff --git a/targets/targets.json b/targets/targets.json
11+
index 677b43ed83..45a6e1f001 100644
12+
--- a/targets/targets.json
13+
+++ b/targets/targets.json
14+
@@ -6937,6 +6937,7 @@
15+
"components_remove": [
16+
"QSPIF"
17+
],
18+
+ "device_has_add": ["WATCHDOG"],
19+
"device_has_remove": [
20+
"QSPI",
21+
"ITM"
22+
--
23+
2.36.0
24+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
From 6959b7db85d808b747949b528289eb9220eae0d5 Mon Sep 17 00:00:00 2001
2+
From: Giampaolo Mancini <giampaolo@trampolineup.com>
3+
Date: Fri, 29 Apr 2022 17:13:01 +0200
4+
Subject: [PATCH 159/159] Enable Watchdog for NICLA
5+
6+
---
7+
.../TARGET_MCU_NRF52832/config/sdk_config.h | 12 ++++++++++++
8+
targets/targets.json | 1 +
9+
2 files changed, 13 insertions(+)
10+
11+
diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/config/sdk_config.h b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/config/sdk_config.h
12+
index b1112d715a..dea0276ddb 100644
13+
--- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/config/sdk_config.h
14+
+++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/config/sdk_config.h
15+
@@ -4487,6 +4487,18 @@
16+
#define NRFX_WDT_CONFIG_LOG_LEVEL 3
17+
#endif
18+
19+
+
20+
+// <e> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver.
21+
+//==========================================================
22+
+
23+
+// <0=> Include WDT IRQ handling
24+
+// <1=> Remove WDT IRQ handling
25+
+
26+
+#ifndef NRFX_WDT_CONFIG_NO_IRQ
27+
+#define NRFX_WDT_CONFIG_NO_IRQ 1
28+
+#endif
29+
+
30+
+
31+
// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
32+
33+
// <0=> Default
34+
diff --git a/targets/targets.json b/targets/targets.json
35+
index 45a6e1f001..a42b64a071 100644
36+
--- a/targets/targets.json
37+
+++ b/targets/targets.json
38+
@@ -6763,6 +6763,7 @@
39+
"components_add": [
40+
"FLASHIAP"
41+
],
42+
+ "device_has_add": ["WATCHDOG"],
43+
"release_versions": ["5"],
44+
"device_name": "nRF52832_xxAA",
45+
"macros_add": [
46+
--
47+
2.36.0
48+

0 commit comments

Comments
 (0)