diff options
author | IBNobody <protospherex@gmail.com> | 2016-04-18 15:47:10 -0500 |
---|---|---|
committer | IBNobody <protospherex@gmail.com> | 2016-04-18 15:47:10 -0500 |
commit | cbcf0abe62b764a9f3d80848611dca8291d93eb8 (patch) | |
tree | 2014b1d839bfaa29acdbf432265d908562304834 /tmk_core/common/avr | |
parent | d5cc31d7d4fc1a36fc3e3e0018369cb52553f50f (diff) | |
parent | 4f4b5b8c18d4f1bf4fd4c51ad6f316501dfbd6cc (diff) |
Merge remote-tracking branch 'refs/remotes/origin/personal_atomic_planck'
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..25bb9e849c 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, 0xFF); // On by default +#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 |