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.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c
index 61aaec205..933ac42bd 100644
--- a/tmk_core/common/eeconfig.c
+++ b/tmk_core/common/eeconfig.c
@@ -153,8 +153,8 @@ uint32_t eeconfig_read_kb(void) { return eeprom_read_dword(EECONFIG_KEYBOARD); }
153 * 153 *
154 * FIXME: needs doc 154 * FIXME: needs doc
155 */ 155 */
156
157void eeconfig_update_kb(uint32_t val) { eeprom_update_dword(EECONFIG_KEYBOARD, val); } 156void eeconfig_update_kb(uint32_t val) { eeprom_update_dword(EECONFIG_KEYBOARD, val); }
157
158/** \brief eeconfig read user 158/** \brief eeconfig read user
159 * 159 *
160 * FIXME: needs doc 160 * FIXME: needs doc
@@ -166,9 +166,24 @@ uint32_t eeconfig_read_user(void) { return eeprom_read_dword(EECONFIG_USER); }
166 */ 166 */
167void eeconfig_update_user(uint32_t val) { eeprom_update_dword(EECONFIG_USER, val); } 167void eeconfig_update_user(uint32_t val) { eeprom_update_dword(EECONFIG_USER, val); }
168 168
169/** \brief eeconfig read haptic
170 *
171 * FIXME: needs doc
172 */
169uint32_t eeconfig_read_haptic(void) { return eeprom_read_dword(EECONFIG_HAPTIC); } 173uint32_t eeconfig_read_haptic(void) { return eeprom_read_dword(EECONFIG_HAPTIC); }
170/** \brief eeconfig update user 174/** \brief eeconfig update haptic
171 * 175 *
172 * FIXME: needs doc 176 * FIXME: needs doc
173 */ 177 */
174void eeconfig_update_haptic(uint32_t val) { eeprom_update_dword(EECONFIG_HAPTIC, val); } 178void eeconfig_update_haptic(uint32_t val) { eeprom_update_dword(EECONFIG_HAPTIC, val); }
179
180/** \brief eeconfig read split handedness
181 *
182 * FIXME: needs doc
183 */
184bool eeconfig_read_handedness(void) { return !!eeprom_read_byte(EECONFIG_HANDEDNESS); }
185/** \brief eeconfig update split handedness
186 *
187 * FIXME: needs doc
188 */
189void eeconfig_update_handedness(bool val) { eeprom_update_byte(EECONFIG_HANDEDNESS, !!val); }