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
This commit is contained in:
@@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
#include "radio_node.h"
|
#include "radio_node.h"
|
||||||
|
#ifdef ARDUINO_AVR_FEATHER32U4
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
|
#elif defined(ARDUINO_SAMD_FEATHER_M0)
|
||||||
|
// Include EEPROM-like API for FlashStorage
|
||||||
|
#include <FlashAsEEPROM.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PLATFORM_NODE_H
|
#ifndef PLATFORM_NODE_H
|
||||||
#define PLATFORM_NODE_H
|
#define PLATFORM_NODE_H
|
||||||
@@ -48,4 +53,4 @@ class PlatformNode {
|
|||||||
volatile int _channels[PLATFORM_TOTAL_CHANNEL_COUNT];
|
volatile int _channels[PLATFORM_TOTAL_CHANNEL_COUNT];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user