mirror of
https://github.com/thelsing/knx.git
synced 2025-07-30 13:46:26 +02:00
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:
parent
3c2dc6e7ea
commit
fdf09012d0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user