diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-04-15 23:38:21 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-04-15 23:38:21 -0400 |
| commit | 0faa18eab996c2cfcc5da0b60b702f52335c5854 (patch) | |
| tree | 33ed4babd10d6e8051edafa48f142e0e78aeeed5 /tmk_core/common/avr/eeconfig.c | |
| parent | 91119636631f24bd1bf97f32c3d39f8828da625f (diff) | |
| download | qmk_firmware-0faa18eab996c2cfcc5da0b60b702f52335c5854.tar.gz qmk_firmware-0faa18eab996c2cfcc5da0b60b702f52335c5854.zip | |
audio enable stored in eeprom
Diffstat (limited to 'tmk_core/common/avr/eeconfig.c')
| -rw-r--r-- | tmk_core/common/avr/eeconfig.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/common/avr/eeconfig.c b/tmk_core/common/avr/eeconfig.c index 5bd47dc6a..d0c3f4f57 100644 --- a/tmk_core/common/avr/eeconfig.c +++ b/tmk_core/common/avr/eeconfig.c | |||
| @@ -13,6 +13,9 @@ void eeconfig_init(void) | |||
| 13 | #ifdef BACKLIGHT_ENABLE | 13 | #ifdef BACKLIGHT_ENABLE |
| 14 | eeprom_write_byte(EECONFIG_BACKLIGHT, 0); | 14 | eeprom_write_byte(EECONFIG_BACKLIGHT, 0); |
| 15 | #endif | 15 | #endif |
| 16 | #ifdef AUDIO_ENABLE | ||
| 17 | eeprom_write_byte(EECONFIG_AUDIO, 0); | ||
| 18 | #endif | ||
| 16 | } | 19 | } |
| 17 | 20 | ||
| 18 | void eeconfig_enable(void) | 21 | void eeconfig_enable(void) |
| @@ -43,3 +46,8 @@ void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val | |||
| 43 | uint8_t eeconfig_read_backlight(void) { return eeprom_read_byte(EECONFIG_BACKLIGHT); } | 46 | uint8_t eeconfig_read_backlight(void) { return eeprom_read_byte(EECONFIG_BACKLIGHT); } |
| 44 | void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } | 47 | void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } |
| 45 | #endif | 48 | #endif |
| 49 | |||
| 50 | #ifdef AUDIO_ENABLE | ||
| 51 | uint8_t eeconfig_read_audio(void) { return eeprom_read_byte(EECONFIG_AUDIO); } | ||
| 52 | void eeconfig_write_audio(uint8_t val) { eeprom_write_byte(EECONFIG_AUDIO, val); } | ||
| 53 | #endif \ No newline at end of file | ||
