summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-16 02:58:48 +0100
committerGitHub <noreply@github.com>2021-10-16 02:58:48 +0100
commit83e978da1fba4cfbb76dc22e05aa656dba8c1c3e (patch)
tree1413d3703ef5bc6000ce176b7464af83c68ab829 /tmk_core/common
parent5c6a8f599fbd4a083548503e88aa7f969a5b753b (diff)
Further tidy up of STM32 eeprom emulation (#14591)
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/chibios/flash_stm32.c4
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 8f10903d3d..35fb0eebdb 100644
--- a/tmk_core/common/chibios/flash_stm32.c
+++ b/tmk_core/common/chibios/flash_stm32.c
@@ -19,11 +19,11 @@
#include <hal.h>
#include "flash_stm32.h"
-#if defined(EEPROM_EMU_STM32F103xB)
+#if defined(STM32F1XX)
# define FLASH_SR_WRPERR FLASH_SR_WRPRTERR
#endif
-#if defined(EEPROM_EMU_STM32F401xC)
+#if defined(STM32F4XX)
# define FLASH_SR_PGERR (FLASH_SR_PGSERR | FLASH_SR_PGPERR | FLASH_SR_PGAERR)
# define FLASH_KEY1 0x45670123U