2022-02-02 05:04:37 +01:00
|
|
|
eeprom_stm32_DEFS := -DEEPROM_TEST_HARNESS -DFLASH_STM32_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf
|
2021-08-24 00:15:34 +02:00
|
|
|
eeprom_stm32_tiny_DEFS := $(eeprom_stm32_DEFS) \
|
|
|
|
-DFEE_MCU_FLASH_SIZE=1 \
|
|
|
|
-DMOCK_FLASH_SIZE=1024 \
|
|
|
|
-DFEE_PAGE_SIZE=512 \
|
2021-09-05 22:36:43 +02:00
|
|
|
-DFEE_PAGE_COUNT=1
|
2021-08-24 00:15:34 +02:00
|
|
|
eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \
|
|
|
|
-DFEE_MCU_FLASH_SIZE=64 \
|
|
|
|
-DMOCK_FLASH_SIZE=65536 \
|
|
|
|
-DFEE_PAGE_SIZE=2048 \
|
2021-09-05 22:36:43 +02:00
|
|
|
-DFEE_PAGE_COUNT=16
|
2021-08-24 00:15:34 +02:00
|
|
|
|
|
|
|
eeprom_stm32_INC := \
|
2021-11-19 19:41:02 +01:00
|
|
|
$(PLATFORM_PATH)/chibios/
|
2021-08-24 00:15:34 +02:00
|
|
|
eeprom_stm32_tiny_INC := $(eeprom_stm32_INC)
|
|
|
|
eeprom_stm32_large_INC := $(eeprom_stm32_INC)
|
|
|
|
|
|
|
|
eeprom_stm32_SRC := \
|
2021-09-15 10:21:36 +02:00
|
|
|
$(TOP_DIR)/drivers/eeprom/eeprom_driver.c \
|
2021-11-19 19:41:02 +01:00
|
|
|
$(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_stm32_tests.cpp \
|
|
|
|
$(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \
|
|
|
|
$(PLATFORM_PATH)/chibios/eeprom_stm32.c
|
2021-08-24 00:15:34 +02:00
|
|
|
eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC)
|
|
|
|
eeprom_stm32_large_SRC := $(eeprom_stm32_SRC)
|