2022-11-23 19:50:19 +11:00
|
|
|
eeprom_legacy_emulated_flash_DEFS := -DEEPROM_TEST_HARNESS -DLEGACY_FLASH_OPS_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf
|
|
|
|
eeprom_legacy_emulated_flash_tiny_DEFS := $(eeprom_legacy_emulated_flash_DEFS) \
|
2021-08-23 15:15:34 -07:00
|
|
|
-DFEE_MCU_FLASH_SIZE=1 \
|
|
|
|
-DMOCK_FLASH_SIZE=1024 \
|
|
|
|
-DFEE_PAGE_SIZE=512 \
|
2021-09-05 21:36:43 +01:00
|
|
|
-DFEE_PAGE_COUNT=1
|
2022-11-23 19:50:19 +11:00
|
|
|
eeprom_legacy_emulated_flash_large_DEFS := $(eeprom_legacy_emulated_flash_DEFS) \
|
2021-08-23 15:15:34 -07:00
|
|
|
-DFEE_MCU_FLASH_SIZE=64 \
|
|
|
|
-DMOCK_FLASH_SIZE=65536 \
|
|
|
|
-DFEE_PAGE_SIZE=2048 \
|
2021-09-05 21:36:43 +01:00
|
|
|
-DFEE_PAGE_COUNT=16
|
2021-08-23 15:15:34 -07:00
|
|
|
|
2022-11-23 19:50:19 +11:00
|
|
|
eeprom_legacy_emulated_flash_INC := \
|
2022-06-08 09:42:35 +10:00
|
|
|
$(PLATFORM_PATH)/chibios/drivers/eeprom/ \
|
|
|
|
$(PLATFORM_PATH)/chibios/drivers/flash/
|
2022-11-23 19:50:19 +11:00
|
|
|
eeprom_legacy_emulated_flash_tiny_INC := $(eeprom_legacy_emulated_flash_INC)
|
|
|
|
eeprom_legacy_emulated_flash_large_INC := $(eeprom_legacy_emulated_flash_INC)
|
2021-08-23 15:15:34 -07:00
|
|
|
|
2022-11-23 19:50:19 +11:00
|
|
|
eeprom_legacy_emulated_flash_SRC := \
|
2021-09-15 09:21:36 +01:00
|
|
|
$(TOP_DIR)/drivers/eeprom/eeprom_driver.c \
|
2022-11-23 19:50:19 +11:00
|
|
|
$(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_legacy_emulated_flash_tests.cpp \
|
|
|
|
$(PLATFORM_PATH)/$(PLATFORM_KEY)/legacy_flash_ops_mock.c \
|
|
|
|
$(PLATFORM_PATH)/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c
|
|
|
|
eeprom_legacy_emulated_flash_tiny_SRC := $(eeprom_legacy_emulated_flash_SRC)
|
|
|
|
eeprom_legacy_emulated_flash_large_SRC := $(eeprom_legacy_emulated_flash_SRC)
|