Skip to content

Commit 6cfab47

Browse files
committed
Add watchdog support for ARDUINO_NICLA_VISION
1 parent c15eec7 commit 6cfab47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include "tls/utility/CryptoUtil.h"
3939
#endif
4040

41-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
41+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
4242
# include "tls/utility/SHA256.h"
4343
# include <stm32h7xx_hal_rtc_ex.h>
4444
# include <WiFi.h>
@@ -56,7 +56,7 @@
5656
* EXTERN
5757
******************************************************************************/
5858

59-
#if defined(ARDUINO_PORTENTA_H7_M7)
59+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
6060
extern RTC_HandleTypeDef RTCHandle;
6161
#endif
6262

src/utility/watchdog/Watchdog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void mkr_nb_feed_watchdog()
9090
static void mbed_watchdog_enable()
9191
{
9292
watchdog_config_t cfg;
93-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
93+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
9494
cfg.timeout_ms = PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms;
9595
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
9696
cfg.timeout_ms = NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms;
@@ -116,7 +116,7 @@ static void mbed_watchdog_reset()
116116
void mbed_watchdog_trigger_reset()
117117
{
118118
watchdog_config_t cfg;
119-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
119+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
120120
cfg.timeout_ms = 1;
121121
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
122122
cfg.timeout_ms = 1;

0 commit comments

Comments
 (0)