diff options
author | Jack Humbert <[email protected]> | 2016-04-15 23:38:21 -0400 |
---|---|---|
committer | Jack Humbert <[email protected]> | 2016-04-15 23:38:21 -0400 |
commit | 0faa18eab996c2cfcc5da0b60b702f52335c5854 (patch) | |
tree | 33ed4babd10d6e8051edafa48f142e0e78aeeed5 /tmk_core/common/avr | |
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')
-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 5bd47dc6ad..d0c3f4f570 100644 --- a/tmk_core/common/avr/eeconfig.c +++ b/tmk_core/common/avr/eeconfig.c @@ -13,6 +13,9 @@ void eeconfig_init(void) #ifdef BACKLIGHT_ENABLE eeprom_write_byte(EECONFIG_BACKLIGHT, 0); #endif +#ifdef AUDIO_ENABLE + eeprom_write_byte(EECONFIG_AUDIO, 0); +#endif } void eeconfig_enable(void) @@ -43,3 +46,8 @@ void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val 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 + +#ifdef AUDIO_ENABLE +uint8_t eeconfig_read_audio(void) { return eeprom_read_byte(EECONFIG_AUDIO); } +void eeconfig_write_audio(uint8_t val) { eeprom_write_byte(EECONFIG_AUDIO, val); } +#endif
\ No newline at end of file |