diff options
Diffstat (limited to 'tmk_core')
| -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 |
