diff options
| author | Nick Brassel <nick@tzarc.org> | 2020-03-12 12:59:55 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-12 12:59:55 +1100 |
| commit | f2f2afe13ba3ae1da8a546ad85eb9e69ddc70a8a (patch) | |
| tree | 6c5b20825aa0c28be64eebce4c4a69ca638cd774 /common_features.mk | |
| parent | 3a3ea03b6ef51698de39e545e9ca1d8e1d093e31 (diff) | |
| download | qmk_firmware-f2f2afe13ba3ae1da8a546ad85eb9e69ddc70a8a.tar.gz qmk_firmware-f2f2afe13ba3ae1da8a546ad85eb9e69ddc70a8a.zip | |
Add support for STM32L0/L1 onboard EEPROM. (#8002)
* Add support for STM32L0/L1 onboard EEPROM.
* Update docs/eeprom_driver.md
Co-Authored-By: Joel Challis <git@zvecr.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk index fe65974e7..b71dbc77e 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -141,6 +141,10 @@ else | |||
| 141 | SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c | 141 | SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c |
| 142 | OPT_DEFS += -DEEPROM_EMU_STM32F072xB | 142 | OPT_DEFS += -DEEPROM_EMU_STM32F072xB |
| 143 | OPT_DEFS += -DSTM32_EEPROM_ENABLE | 143 | OPT_DEFS += -DSTM32_EEPROM_ENABLE |
| 144 | else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),) | ||
| 145 | OPT_DEFS += -DEEPROM_DRIVER | ||
| 146 | COMMON_VPATH += $(DRIVER_PATH)/eeprom | ||
| 147 | SRC += eeprom_driver.c eeprom_stm32_L0_L1.c | ||
| 144 | else | 148 | else |
| 145 | # This will effectively work the same as "transient" if not supported by the chip | 149 | # This will effectively work the same as "transient" if not supported by the chip |
| 146 | SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c | 150 | SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c |
