aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index ed6908f4b..e0ae1d74c 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -114,6 +114,17 @@ else
114 SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c 114 SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c
115 OPT_DEFS += -DEEPROM_EMU_STM32F072xB 115 OPT_DEFS += -DEEPROM_EMU_STM32F072xB
116 OPT_DEFS += -DSTM32_EEPROM_ENABLE 116 OPT_DEFS += -DSTM32_EEPROM_ENABLE
117 else ifeq ($(MCU_SERIES)_$(MCU_LDSCRIPT), STM32F0xx_STM32F042x6)
118
119 # Stack sizes: Since this chip has limited RAM capacity, the stack area needs to be reduced.
120 # This ensures that the EEPROM page buffer fits into RAM
121 USE_PROCESS_STACKSIZE = 0x600
122 USE_EXCEPTIONS_STACKSIZE = 0x300
123
124 SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c
125 SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c
126 OPT_DEFS += -DEEPROM_EMU_STM32F042x6
127 OPT_DEFS += -DSTM32_EEPROM_ENABLE
117 else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),) 128 else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),)
118 OPT_DEFS += -DEEPROM_DRIVER 129 OPT_DEFS += -DEEPROM_DRIVER
119 COMMON_VPATH += $(DRIVER_PATH)/eeprom 130 COMMON_VPATH += $(DRIVER_PATH)/eeprom