diff options
| author | yiancar <yiangosyiangou@cytanet.com.cy> | 2019-01-07 01:22:19 +0000 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-01-06 17:22:19 -0800 |
| commit | 2bfac351edebc6e141d3291448512b0e228e5c47 (patch) | |
| tree | dd8f9ed31f1a3ddabe59f26a9fdfb85b1570d0ae /tmk_core/common/eeconfig.c | |
| parent | 2c0bc5ed6be737e98377fa2299102f6737bbea72 (diff) | |
| download | qmk_firmware-2bfac351edebc6e141d3291448512b0e228e5c47.tar.gz qmk_firmware-2bfac351edebc6e141d3291448512b0e228e5c47.zip | |
Final HS60v2 changes. (#4790)
* initial commit, this now mostly works
- RGB controls work
- Dynamic keymap still broken due to eeprom
- Via works
* STM32 eeprom update
- Update EEPROM emulation library to handle 8bit data like AVR.
- This library also allows for multiple page pairs resulting in greater EEPROM size flexibility
* hs60 changes
* HS60 hhkb added
* Update keyboards/hs60/v2/config.h
Co-Authored-By: yiancar <yiangosyiangou@cytanet.com.cy>
Diffstat (limited to 'tmk_core/common/eeconfig.c')
| -rw-r--r-- | tmk_core/common/eeconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index d8bab7d2e..59b2bffbc 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c | |||
| @@ -33,7 +33,7 @@ void eeconfig_init_kb(void) { | |||
| 33 | */ | 33 | */ |
| 34 | void eeconfig_init_quantum(void) { | 34 | void eeconfig_init_quantum(void) { |
| 35 | #ifdef STM32_EEPROM_ENABLE | 35 | #ifdef STM32_EEPROM_ENABLE |
| 36 | EEPROM_format(); | 36 | EEPROM_Erase(); |
| 37 | #endif | 37 | #endif |
| 38 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); | 38 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); |
| 39 | eeprom_update_byte(EECONFIG_DEBUG, 0); | 39 | eeprom_update_byte(EECONFIG_DEBUG, 0); |
| @@ -74,7 +74,7 @@ void eeconfig_enable(void) | |||
| 74 | void eeconfig_disable(void) | 74 | void eeconfig_disable(void) |
| 75 | { | 75 | { |
| 76 | #ifdef STM32_EEPROM_ENABLE | 76 | #ifdef STM32_EEPROM_ENABLE |
| 77 | EEPROM_format(); | 77 | EEPROM_Erase(); |
| 78 | #endif | 78 | #endif |
| 79 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER_OFF); | 79 | eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER_OFF); |
| 80 | } | 80 | } |
