From cd0dfc565c8faf1f3c363ea8ed5f7cabe8f779e1 Mon Sep 17 00:00:00 2001 From: pmantoine Date: Fri, 1 Apr 2022 21:28:21 +0800 Subject: [PATCH] Initial SAMD defines --- DCCTimer.h | 3 +++ defines.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DCCTimer.h b/DCCTimer.h index fb8184b..04d171f 100644 --- a/DCCTimer.h +++ b/DCCTimer.h @@ -121,6 +121,9 @@ private: #elif defined(ARDUINO_ARCH_ESP32) #define ARDUINO_TYPE "ESP32" #undef HAS_AVR_WDT +#elif defined(ARDUINO_ARCH_SAMD) +#define ARDUINO_TYPE "SAMD21" +#undef HAS_AVR_WDT #else #error CANNOT COMPILE - DCC++ EX ONLY WORKS WITH THE ARCHITECTURES LISTED IN DCCTimer.h #endif diff --git a/defines.h b/defines.h index 9ce154d..c24d6af 100644 --- a/defines.h +++ b/defines.h @@ -40,7 +40,7 @@ // WIFI_ON: All prereqs for running with WIFI are met // Note: WIFI_CHANNEL may not exist in early config.h files so is added here if needed. -#if defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_SAMD_ZERO) || defined(TEENSYDUINO) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) +#if defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_SAMD_ZERO) || defined(TEENSYDUINO) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_SAMD) #define BIG_RAM #endif #if ENABLE_WIFI