mirror of
https://github.com/thelsing/knx.git
synced 2025-01-02 00:06:43 +01:00
dce92403e5
* add commitNonVolatileMemory overload to batch write chars n times to flash * changed uint8_t getEepromBuffer(uint16_t size) to uint8_t getEepromBuffer(uint32_t size) to allow eeprom > 65k * reworked PR #230
26 lines
482 B
C++
26 lines
482 B
C++
#ifdef ARDUINO_ARCH_STM32
|
|
#include "arduino_platform.h"
|
|
|
|
class Stm32Platform : public ArduinoPlatform
|
|
{
|
|
public:
|
|
Stm32Platform();
|
|
Stm32Platform( HardwareSerial* s);
|
|
~Stm32Platform();
|
|
|
|
// unique serial number
|
|
uint32_t uniqueSerialNumber() override;
|
|
|
|
// basic stuff
|
|
void restart();
|
|
|
|
//memory
|
|
uint8_t* getEepromBuffer(uint32_t size);
|
|
void commitToEeprom();
|
|
private:
|
|
uint8_t *_eepromPtr = nullptr;
|
|
uint16_t _eepromSize = 0;
|
|
};
|
|
|
|
#endif
|