Skip to content

Commit f6f6863

Browse files
committed
Move inclusion of SAMD watchdog library to Watchdog.cpp file, there's no need for it to be publicly available.
1 parent e936ed1 commit f6f6863

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/utility/watchdog/Watchdog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
# include <Arduino_DebugUtils.h>
2828
#endif
2929

30+
#ifdef ARDUINO_ARCH_SAMD
31+
# include <Adafruit_SleepyDog.h>
32+
# define SAMD_WATCHDOG_MAX_TIME_ms (16 * 1000)
33+
#endif /* ARDUINO_ARCH_SAMD */
34+
3035
#ifdef ARDUINO_ARCH_MBED
3136
# include <watchdog_api.h>
3237
# define PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms (32760)

src/utility/watchdog/Watchdog.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
#ifndef ARDUINO_AIOTC_UTILITY_WATCHDOG_H_
1919
#define ARDUINO_AIOTC_UTILITY_WATCHDOG_H_
2020

21-
/******************************************************************************
22-
* PREPROCESSOR SECTION
23-
******************************************************************************/
24-
25-
#ifdef ARDUINO_ARCH_SAMD
26-
# include <Adafruit_SleepyDog.h>
27-
# define SAMD_WATCHDOG_MAX_TIME_ms (16 * 1000)
28-
#endif /* ARDUINO_ARCH_SAMD */
29-
3021
/******************************************************************************
3122
* FUNCTION DECLARATION
3223
******************************************************************************/

0 commit comments

Comments
 (0)