diff options
| author | Joel Challis <git@zvecr.com> | 2021-10-16 02:58:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-16 02:58:48 +0100 |
| commit | 83e978da1fba4cfbb76dc22e05aa656dba8c1c3e (patch) | |
| tree | 1413d3703ef5bc6000ce176b7464af83c68ab829 /tmk_core/common | |
| parent | 5c6a8f599fbd4a083548503e88aa7f969a5b753b (diff) | |
| download | qmk_firmware-83e978da1fba4cfbb76dc22e05aa656dba8c1c3e.tar.gz qmk_firmware-83e978da1fba4cfbb76dc22e05aa656dba8c1c3e.zip | |
Further tidy up of STM32 eeprom emulation (#14591)
Diffstat (limited to 'tmk_core/common')
| -rw-r--r-- | tmk_core/common/chibios/flash_stm32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/chibios/flash_stm32.c b/tmk_core/common/chibios/flash_stm32.c index 8f10903d3..35fb0eebd 100644 --- a/tmk_core/common/chibios/flash_stm32.c +++ b/tmk_core/common/chibios/flash_stm32.c | |||
| @@ -19,11 +19,11 @@ | |||
| 19 | #include <hal.h> | 19 | #include <hal.h> |
| 20 | #include "flash_stm32.h" | 20 | #include "flash_stm32.h" |
| 21 | 21 | ||
| 22 | #if defined(EEPROM_EMU_STM32F103xB) | 22 | #if defined(STM32F1XX) |
| 23 | # define FLASH_SR_WRPERR FLASH_SR_WRPRTERR | 23 | # define FLASH_SR_WRPERR FLASH_SR_WRPRTERR |
| 24 | #endif | 24 | #endif |
| 25 | 25 | ||
| 26 | #if defined(EEPROM_EMU_STM32F401xC) | 26 | #if defined(STM32F4XX) |
| 27 | # define FLASH_SR_PGERR (FLASH_SR_PGSERR | FLASH_SR_PGPERR | FLASH_SR_PGAERR) | 27 | # define FLASH_SR_PGERR (FLASH_SR_PGSERR | FLASH_SR_PGPERR | FLASH_SR_PGAERR) |
| 28 | 28 | ||
| 29 | # define FLASH_KEY1 0x45670123U | 29 | # define FLASH_KEY1 0x45670123U |
