diff options
author | Joel Challis <git@zvecr.com> | 2021-09-15 16:30:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 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 ddb7112fd..2cd78ceb6 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -177,8 +177,14 @@ else | |||
177 | SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c | 177 | SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c |
178 | SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c | 178 | SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c |
179 | OPT_DEFS += -DEEPROM_EMU_STM32F072xB | 179 | OPT_DEFS += -DEEPROM_EMU_STM32F072xB |
180 | else ifneq ($(filter $(MCU_SERIES)_$(MCU_LDSCRIPT),STM32F4xx_STM32F401xC STM32F4xx_STM32F411xE),) | ||
181 | OPT_DEFS += -DEEPROM_DRIVER | ||
182 | COMMON_VPATH += $(DRIVER_PATH)/eeprom | ||
183 | SRC += eeprom_driver.c | ||
184 | SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c | ||
185 | SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c | ||
186 | OPT_DEFS += -DEEPROM_EMU_STM32F401xC | ||
180 | else ifeq ($(MCU_SERIES)_$(MCU_LDSCRIPT), STM32F0xx_STM32F042x6) | 187 | else ifeq ($(MCU_SERIES)_$(MCU_LDSCRIPT), STM32F0xx_STM32F042x6) |
181 | |||
182 | # Stack sizes: Since this chip has limited RAM capacity, the stack area needs to be reduced. | 188 | # Stack sizes: Since this chip has limited RAM capacity, the stack area needs to be reduced. |
183 | # This ensures that the EEPROM page buffer fits into RAM | 189 | # This ensures that the EEPROM page buffer fits into RAM |
184 | USE_PROCESS_STACKSIZE = 0x600 | 190 | USE_PROCESS_STACKSIZE = 0x600 |