RP2040 EEPROM/Flash compiler flag fix

use EEPROM emulation as default to allow build of the knx-demo (memory.h defines EEPROM size 1024 which doesn't work with Flashsize 4k)
This commit is contained in:
Sonnengruesser 2022-10-15 12:28:01 +02:00 committed by GitHub
parent 3c2dc6e7ea
commit fdf09012d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,15 @@
#ifdef ARDUINO_ARCH_RP2040 #ifdef ARDUINO_ARCH_RP2040
#define USE_RP2040_EEPROM_EMULATION
#warning "using RP2040 EEPROM emulation"
#ifndef USE_RP2040_EEPROM_EMULATION
#ifndef KNX_FLASH_OFFSET #ifndef KNX_FLASH_OFFSET
#define KNX_FLASH_OFFSET 0x180000 // 1.5MiB #define KNX_FLASH_OFFSET 0x180000 // 1.5MiB
#pragma warning "KNX_FLASH_OFFSET not defined, using 0x180000" #pragma warning "KNX_FLASH_OFFSET not defined, using 0x180000"
#endif #endif
#endif
#ifdef USE_RP2040_LARGE_EEPROM_EMULATION #ifdef USE_RP2040_LARGE_EEPROM_EMULATION
#define USE_RP2040_EEPROM_EMULATION #define USE_RP2040_EEPROM_EMULATION