diff options
Diffstat (limited to 'common/eeconfig.c')
| -rw-r--r-- | common/eeconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/eeconfig.c b/common/eeconfig.c index 7af29ec10..5bd47dc6a 100644 --- a/common/eeconfig.c +++ b/common/eeconfig.c | |||
| @@ -10,7 +10,9 @@ void eeconfig_init(void) | |||
| 10 | eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0); | 10 | eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0); |
| 11 | eeprom_write_byte(EECONFIG_KEYMAP, 0); | 11 | eeprom_write_byte(EECONFIG_KEYMAP, 0); |
| 12 | eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); | 12 | eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); |
| 13 | #ifdef BACKLIGHT_ENABLE | ||
| 13 | eeprom_write_byte(EECONFIG_BACKLIGHT, 0); | 14 | eeprom_write_byte(EECONFIG_BACKLIGHT, 0); |
| 15 | #endif | ||
| 14 | } | 16 | } |
| 15 | 17 | ||
| 16 | void eeconfig_enable(void) | 18 | void eeconfig_enable(void) |
| @@ -37,5 +39,7 @@ void eeconfig_write_default_layer(uint8_t val) { eeprom_write_byte(EECONFIG_DEFA | |||
| 37 | uint8_t eeconfig_read_keymap(void) { return eeprom_read_byte(EECONFIG_KEYMAP); } | 39 | uint8_t eeconfig_read_keymap(void) { return eeprom_read_byte(EECONFIG_KEYMAP); } |
| 38 | void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } | 40 | void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } |
| 39 | 41 | ||
| 42 | #ifdef BACKLIGHT_ENABLE | ||
| 40 | uint8_t eeconfig_read_backlight(void) { return eeprom_read_byte(EECONFIG_BACKLIGHT); } | 43 | uint8_t eeconfig_read_backlight(void) { return eeprom_read_byte(EECONFIG_BACKLIGHT); } |
| 41 | void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } | 44 | void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } |
| 45 | #endif | ||
