diff options
author | Joel Challis <[email protected]> | 2021-09-15 16:30:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-15 16:30:26 +0100 |
commit | 1a68feb842ebcc6a7d1aef7cd7f83865cc18fab1 (patch) | |
tree | 4e792c29ce0587486d325c55fa3fb76cba6e1ede /common_features.mk | |
parent | 6cb8a658847b90f1633b4b331bd72bbc39e69132 (diff) | |
download | qmk_firmware-1a68feb842ebcc6a7d1aef7cd7f83865cc18fab1.tar.gz qmk_firmware-1a68feb842ebcc6a7d1aef7cd7f83865cc18fab1.zip |
Implement F4 eeprom (#14195)
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk index ddb7112fd8..2cd78ceb66 100644 --- a/common_features.mk +++ b/common_features.mk @@ -177,8 +177,14 @@ else SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c OPT_DEFS += -DEEPROM_EMU_STM32F072xB + else ifneq ($(filter $(MCU_SERIES)_$(MCU_LDSCRIPT),STM32F4xx_STM32F401xC STM32F4xx_STM32F411xE),) + OPT_DEFS += -DEEPROM_DRIVER + COMMON_VPATH += $(DRIVER_PATH)/eeprom + SRC += eeprom_driver.c + SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c + SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c + OPT_DEFS += -DEEPROM_EMU_STM32F401xC else ifeq ($(MCU_SERIES)_$(MCU_LDSCRIPT), STM32F0xx_STM32F042x6) - # Stack sizes: Since this chip has limited RAM capacity, the stack area needs to be reduced. # This ensures that the EEPROM page buffer fits into RAM USE_PROCESS_STACKSIZE = 0x600 |