diff options
Diffstat (limited to 'tmk_core/common/eeconfig.c')
| -rw-r--r-- | tmk_core/common/eeconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index 0fec410a9..d8bab7d2e 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | #include "eeprom.h" | 3 | #include "eeprom.h" |
| 4 | #include "eeconfig.h" | 4 | #include "eeconfig.h" |
| 5 | 5 | ||
| 6 | #ifdef STM32F303xC | 6 | #ifdef STM32_EEPROM_ENABLE |
| 7 | #include "hal.h" | 7 | #include "hal.h" |
| 8 | #include "eeprom_stm32.h" | 8 | #include "eeprom_stm32.h" |
| 9 | #endif | 9 | #endif |
| @@ -32,7 +32,7 @@ void eeconfig_init_kb(void) { | |||
| 32 | * FIXME: needs doc | 32 | * FIXME: needs doc |
| 33 | */ | 33 | */ |
| 34 | void eeconfig_init_quantum(void) { | 34 | void eeconfig_init_quantum(void) { |
| 35 | #ifdef STM32F303xC | 35 | #ifdef STM32_EEPROM_ENABLE |
| 36 | EEPROM_format(); | 36 | EEPROM_format(); |
| 37 | #endif | 37 | #endif |
| 38 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); | 38 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); |
| @@ -73,7 +73,7 @@ void eeconfig_enable(void) | |||
| 73 | */ | 73 | */ |
| 74 | void eeconfig_disable(void) | 74 | void eeconfig_disable(void) |
| 75 | { | 75 | { |
| 76 | #ifdef STM32F303xC | 76 | #ifdef STM32_EEPROM_ENABLE |
| 77 | EEPROM_format(); | 77 | EEPROM_format(); |
| 78 | #endif | 78 | #endif |
| 79 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER_OFF); | 79 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER_OFF); |
