aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/eeconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/eeconfig.c')
-rw-r--r--tmk_core/common/eeconfig.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c
index 59b2bffbc..ded27e599 100644
--- a/tmk_core/common/eeconfig.c
+++ b/tmk_core/common/eeconfig.c
@@ -45,6 +45,7 @@ void eeconfig_init_quantum(void) {
45 eeprom_update_byte(EECONFIG_AUDIO, 0xFF); // On by default 45 eeprom_update_byte(EECONFIG_AUDIO, 0xFF); // On by default
46 eeprom_update_dword(EECONFIG_RGBLIGHT, 0); 46 eeprom_update_dword(EECONFIG_RGBLIGHT, 0);
47 eeprom_update_byte(EECONFIG_STENOMODE, 0); 47 eeprom_update_byte(EECONFIG_STENOMODE, 0);
48 eeprom_update_dword(EECONFIG_HAPTIC, 0);
48 49
49 eeconfig_init_kb(); 50 eeconfig_init_kb();
50} 51}
@@ -177,3 +178,11 @@ uint32_t eeconfig_read_user(void) { return eeprom_read_dword(EECONFIG_USER)
177void eeconfig_update_user(uint32_t val) { eeprom_update_dword(EECONFIG_USER, val); } 178void eeconfig_update_user(uint32_t val) { eeprom_update_dword(EECONFIG_USER, val); }
178 179
179 180
181uint32_t eeconfig_read_haptic(void) { return eeprom_read_dword(EECONFIG_HAPTIC); }
182/** \brief eeconfig update user
183 *
184 * FIXME: needs doc
185 */
186void eeconfig_update_haptic(uint32_t val) { eeprom_update_dword(EECONFIG_HAPTIC, val); }
187
188