From 5a63d02901f19cf82e208348d910e5c2ccb294f5 Mon Sep 17 00:00:00 2001 From: kadrim <8304331+kadrim@users.noreply.github.com> Date: Tue, 10 Jul 2018 09:25:50 +0200 Subject: [PATCH] Add EEPROM Emulation Layer for SAMD CPU (Feather M0 etc.) The M0 does not have an EEPROM, instead we are using an emulation layer, provided by the Library cmaglie/FlashStorage --- crossbow/platform_node.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crossbow/platform_node.h b/crossbow/platform_node.h index 3728c59..b0f1820 100644 --- a/crossbow/platform_node.h +++ b/crossbow/platform_node.h @@ -2,7 +2,12 @@ #include "Arduino.h" #include "radio_node.h" +#ifdef ARDUINO_AVR_FEATHER32U4 #include +#elif defined(ARDUINO_SAMD_FEATHER_M0) +// Include EEPROM-like API for FlashStorage +#include +#endif #ifndef PLATFORM_NODE_H #define PLATFORM_NODE_H @@ -48,4 +53,4 @@ class PlatformNode { volatile int _channels[PLATFORM_TOTAL_CHANNEL_COUNT]; }; -#endif \ No newline at end of file +#endif