2020-04-02 18:09:53 +02:00
|
|
|
#ifdef ARDUINO_ARCH_STM32
|
|
|
|
#include "arduino_platform.h"
|
|
|
|
|
|
|
|
class Stm32Platform : public ArduinoPlatform
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Stm32Platform();
|
|
|
|
Stm32Platform( HardwareSerial* s);
|
|
|
|
~Stm32Platform();
|
|
|
|
|
2021-04-12 11:40:56 +02:00
|
|
|
// unique serial number
|
|
|
|
uint32_t uniqueSerialNumber() override;
|
|
|
|
|
2020-04-02 18:09:53 +02:00
|
|
|
// basic stuff
|
|
|
|
void restart();
|
|
|
|
|
|
|
|
//memory
|
|
|
|
uint8_t* getEepromBuffer(uint16_t size);
|
|
|
|
void commitToEeprom();
|
|
|
|
private:
|
2020-06-30 14:58:53 +02:00
|
|
|
uint8_t *_eepromPtr = nullptr;
|
|
|
|
uint16_t _eepromSize = 0;
|
2020-04-02 18:09:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|