diff options
| author | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 | 
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 | 
| commit | 5a0415749d6cd6a095d9c3fbb335360ec5fa59e0 (patch) | |
| tree | 7ed39e24295fbf853625a12fe273ea3ab4c7b202 /common/eeconfig.c | |
| parent | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (diff) | |
| parent | 25ad212c4adae5a27dd2d5a4e9d6bcdfc17edb1b (diff) | |
| download | firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.tar.gz firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.tar.bz2 firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.zip | |
Merge branch 'Wraul-kmac'
Diffstat (limited to 'common/eeconfig.c')
| -rw-r--r-- | common/eeconfig.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/common/eeconfig.c b/common/eeconfig.c index a833f4db9..5bd47dc6a 100644 --- a/common/eeconfig.c +++ b/common/eeconfig.c @@ -10,6 +10,9 @@ void eeconfig_init(void)      eeprom_write_byte(EECONFIG_DEFAULT_LAYER,  0);      eeprom_write_byte(EECONFIG_KEYMAP,         0);      eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); +#ifdef BACKLIGHT_ENABLE +    eeprom_write_byte(EECONFIG_BACKLIGHT,      0); +#endif  }  void eeconfig_enable(void) @@ -35,3 +38,8 @@ void eeconfig_write_default_layer(uint8_t val) { eeprom_write_byte(EECONFIG_DEFA  uint8_t eeconfig_read_keymap(void)      { return eeprom_read_byte(EECONFIG_KEYMAP); }  void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } + +#ifdef BACKLIGHT_ENABLE +uint8_t eeconfig_read_backlight(void)      { return eeprom_read_byte(EECONFIG_BACKLIGHT); } +void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } +#endif | 
