File tree Expand file tree Collapse file tree 5 files changed +123
-277
lines changed Expand file tree Collapse file tree 5 files changed +123
-277
lines changed Original file line number Diff line number Diff line change 142142 #define BOARD_HAS_SECURE_ELEMENT
143143#endif
144144
145+ #if (defined(ARDUINO_ARCH_SAMD ) || defined(ARDUINO_ARCH_MBED ) || \
146+ defined(ARDUINO_ARCH_RENESAS ) || defined(ARDUINO_ARCH_ESP32 )) && \
147+ !defined(ARDUINO_ARCH_ZEPHYR )
148+ #define BOARD_HAS_HW_RTC
149+ #endif
150+
145151#endif // HAS_NOTECARD
146152
147153#if defined(ARDUINO_PORTENTA_H7_M7 ) || defined(ARDUINO_NICLA_VISION ) || defined(ARDUINO_OPTA ) || defined(ARDUINO_GIGA )
Original file line number Diff line number Diff line change 2121
2222#include " AIoTC_Config.h"
2323
24- #if defined(HAS_NOTECARD) || defined(ARDUINO_ARCH_ESP8266) || defined (ARDUINO_RASPBERRY_PI_PICO_W )
24+ #if ! defined(BOARD_HAS_HW_RTC )
2525
2626#include < Arduino.h>
2727#include " RTCMillis.h"
@@ -61,4 +61,4 @@ unsigned long RTCMillis::get()
6161 return _last_rtc_update_value;
6262}
6363
64- #endif /* HAS_NOTECARD || ARDUINO_ARCH_ESP8266 || ARDUINO_RASPBERRY_PI_PICO_W */
64+ #endif /* BOARD_HAS_HW_RTC */
Original file line number Diff line number Diff line change 1818#ifndef ARDUINO_IOT_CLOUD_RTC_MILLIS_H_
1919#define ARDUINO_IOT_CLOUD_RTC_MILLIS_H_
2020
21- #if defined(HAS_NOTECARD) || defined(ARDUINO_ARCH_ESP8266) || defined (ARDUINO_RASPBERRY_PI_PICO_W )
21+ #if ! defined(BOARD_HAS_HW_RTC )
2222
2323/* *************************************************************************************
2424 * INCLUDE
@@ -45,6 +45,6 @@ class RTCMillis
4545
4646};
4747
48- #endif /* HAS_NOTECARD || ARDUINO_ARCH_ESP8266 || ARDUINO_RASPBERRY_PI_PICO_W */
48+ #endif /* BOARD_HAS_HW_RTC */
4949
5050#endif /* ARDUINO_IOT_CLOUD_RTC_MILLIS_H_ */
You can’t perform that action at this time.
0 commit comments