From 62f3e85cea156955a100e0efa191c713920716af Mon Sep 17 00:00:00 2001 From: Ing-Dom Date: Sun, 12 Feb 2023 15:56:04 +0100 Subject: [PATCH] changed uint8_t getEepromBuffer(uint16_t size) to uint8_t getEepromBuffer(uint32_t size) to allow eeprom > 65k --- src/cc1310_platform.h | 2 +- src/esp32_platform.h | 2 +- src/esp_platform.h | 2 +- src/knx/platform.cpp | 2 +- src/knx/platform.h | 2 +- src/linux_platform.h | 2 +- src/rp2040_arduino_platform.h | 2 +- src/samd_platform.h | 2 +- src/stm32_platform.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cc1310_platform.h b/src/cc1310_platform.h index 17086ab..1014f0f 100644 --- a/src/cc1310_platform.h +++ b/src/cc1310_platform.h @@ -20,7 +20,7 @@ class CC1310Platform : public Platform void restart() final; void fatalError() final; - uint8_t* getEepromBuffer(uint16_t size) final; + uint8_t* getEepromBuffer(uint32_t size) final; void commitToEeprom() final; }; diff --git a/src/esp32_platform.h b/src/esp32_platform.h index 07b0d75..0193efe 100644 --- a/src/esp32_platform.h +++ b/src/esp32_platform.h @@ -32,7 +32,7 @@ public: bool sendBytesUniCast(uint32_t addr, uint16_t port, uint8_t* buffer, uint16_t len) override; //memory - uint8_t* getEepromBuffer(uint16_t size); + uint8_t* getEepromBuffer(uint32_t size); void commitToEeprom(); private: WiFiUDP _udp; diff --git a/src/esp_platform.h b/src/esp_platform.h index c535bae..ce55d13 100644 --- a/src/esp_platform.h +++ b/src/esp_platform.h @@ -32,7 +32,7 @@ class EspPlatform : public ArduinoPlatform bool sendBytesUniCast(uint32_t addr, uint16_t port, uint8_t* buffer, uint16_t len) override; //memory - uint8_t* getEepromBuffer(uint16_t size); + uint8_t* getEepromBuffer(uint32_t size); void commitToEeprom(); private: WiFiUDP _udp; diff --git a/src/knx/platform.cpp b/src/knx/platform.cpp index 241dd14..2b77893 100644 --- a/src/knx/platform.cpp +++ b/src/knx/platform.cpp @@ -128,7 +128,7 @@ void Platform::flashErase(uint16_t eraseBlockNum) void Platform::flashWritePage(uint16_t pageNumber, uint8_t* data) {} -uint8_t * Platform::getEepromBuffer(uint16_t size) +uint8_t * Platform::getEepromBuffer(uint32_t size) { return nullptr; } diff --git a/src/knx/platform.h b/src/knx/platform.h index 304e351..b8fafff 100644 --- a/src/knx/platform.h +++ b/src/knx/platform.h @@ -61,7 +61,7 @@ class Platform // // --- changes to the UserMemory are written directly into the address space starting at getEepromBuffer // --- commitToEeprom must save this to a non-volatile area if neccessary - virtual uint8_t* getEepromBuffer(uint16_t size); + virtual uint8_t* getEepromBuffer(uint32_t size); virtual void commitToEeprom(); // ------------------------------------------------------------------------------------------------------- diff --git a/src/linux_platform.h b/src/linux_platform.h index 0ec9bb9..d691e63 100644 --- a/src/linux_platform.h +++ b/src/linux_platform.h @@ -55,7 +55,7 @@ public: int readWriteSpi (uint8_t *data, size_t len) override; //memory - uint8_t* getEepromBuffer(uint16_t size) override; + uint8_t* getEepromBuffer(uint32_t size) override; void commitToEeprom() override; void cmdlineArgs(int argc, char** argv); diff --git a/src/rp2040_arduino_platform.h b/src/rp2040_arduino_platform.h index 77a8736..15e6dcb 100644 --- a/src/rp2040_arduino_platform.h +++ b/src/rp2040_arduino_platform.h @@ -30,7 +30,7 @@ public: void restart(); #ifdef USE_RP2040_EEPROM_EMULATION - uint8_t* getEepromBuffer(uint16_t size); + uint8_t* getEepromBuffer(uint32_t size); void commitToEeprom(); #ifdef USE_RP2040_LARGE_EEPROM_EMULATION diff --git a/src/samd_platform.h b/src/samd_platform.h index fb22dc6..948a5d8 100644 --- a/src/samd_platform.h +++ b/src/samd_platform.h @@ -17,7 +17,7 @@ public: void restart(); #ifdef USE_SAMD_EEPROM_EMULATION - uint8_t* getEepromBuffer(uint16_t size); + uint8_t* getEepromBuffer(uint32_t size); void commitToEeprom(); #else // size of one EraseBlock in pages diff --git a/src/stm32_platform.h b/src/stm32_platform.h index 056a327..7545ca0 100644 --- a/src/stm32_platform.h +++ b/src/stm32_platform.h @@ -15,7 +15,7 @@ public: void restart(); //memory - uint8_t* getEepromBuffer(uint16_t size); + uint8_t* getEepromBuffer(uint32_t size); void commitToEeprom(); private: uint8_t *_eepromPtr = nullptr;