We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f6863 commit 8f2960dCopy full SHA for 8f2960d
src/utility/watchdog/Watchdog.cpp
@@ -35,6 +35,7 @@
35
#ifdef ARDUINO_ARCH_MBED
36
# include <watchdog_api.h>
37
# define PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms (32760)
38
+# define NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms (32760)
39
#endif /* ARDUINO_ARCH_MBED */
40
41
/******************************************************************************
@@ -79,6 +80,8 @@ void mbed_watchdog_enable()
79
80
watchdog_config_t cfg;
81
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M)
82
cfg.timeout_ms = PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms;
83
+#elif defined(ARDUINO_NANO_RP2040_CONNECT)
84
+ cfg.timeout_ms = NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms;
85
#else
86
# error "You need to define the maximum possible timeout for this architecture."
87
#endif
0 commit comments