diff options
Diffstat (limited to 'tmk_core/common/eeconfig.h')
| -rw-r--r-- | tmk_core/common/eeconfig.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h index 86b9e6f99..a88071729 100644 --- a/tmk_core/common/eeconfig.h +++ b/tmk_core/common/eeconfig.h | |||
| @@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | #include <stdbool.h> | 21 | #include <stdbool.h> |
| 22 | 22 | ||
| 23 | #ifndef EECONFIG_MAGIC_NUMBER | 23 | #ifndef EECONFIG_MAGIC_NUMBER |
| 24 | # define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEEB // When changing, decrement this value to avoid future re-init issues | 24 | # define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEEA // When changing, decrement this value to avoid future re-init issues |
| 25 | #endif | 25 | #endif |
| 26 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF | 26 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF |
| 27 | 27 | ||
| @@ -43,12 +43,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 43 | #define EECONFIG_VELOCIKEY (uint8_t *)23 | 43 | #define EECONFIG_VELOCIKEY (uint8_t *)23 |
| 44 | 44 | ||
| 45 | #define EECONFIG_HAPTIC (uint32_t *)24 | 45 | #define EECONFIG_HAPTIC (uint32_t *)24 |
| 46 | |||
| 47 | // Mutually exclusive | ||
| 48 | #define EECONFIG_LED_MATRIX (uint32_t *)28 | ||
| 46 | #define EECONFIG_RGB_MATRIX (uint32_t *)28 | 49 | #define EECONFIG_RGB_MATRIX (uint32_t *)28 |
| 47 | #define EECONFIG_RGB_MATRIX_SPEED (uint8_t *)32 | 50 | // Speed & Flags |
| 51 | #define EECONFIG_LED_MATRIX_EXTENDED (uint16_t *)32 | ||
| 52 | #define EECONFIG_RGB_MATRIX_EXTENDED (uint16_t *)32 | ||
| 53 | |||
| 48 | // TODO: Combine these into a single word and single block of EEPROM | 54 | // TODO: Combine these into a single word and single block of EEPROM |
| 49 | #define EECONFIG_KEYMAP_UPPER_BYTE (uint8_t *)33 | 55 | #define EECONFIG_KEYMAP_UPPER_BYTE (uint8_t *)34 |
| 50 | // Size of EEPROM being used, other code can refer to this for available EEPROM | 56 | // Size of EEPROM being used, other code can refer to this for available EEPROM |
| 51 | #define EECONFIG_SIZE 34 | 57 | #define EECONFIG_SIZE 35 |
| 52 | /* debug bit */ | 58 | /* debug bit */ |
| 53 | #define EECONFIG_DEBUG_ENABLE (1 << 0) | 59 | #define EECONFIG_DEBUG_ENABLE (1 << 0) |
| 54 | #define EECONFIG_DEBUG_MATRIX (1 << 1) | 60 | #define EECONFIG_DEBUG_MATRIX (1 << 1) |
| @@ -88,11 +94,6 @@ void eeconfig_update_default_layer(uint8_t val); | |||
| 88 | uint16_t eeconfig_read_keymap(void); | 94 | uint16_t eeconfig_read_keymap(void); |
| 89 | void eeconfig_update_keymap(uint16_t val); | 95 | void eeconfig_update_keymap(uint16_t val); |
| 90 | 96 | ||
| 91 | #ifdef BACKLIGHT_ENABLE | ||
| 92 | uint8_t eeconfig_read_backlight(void); | ||
| 93 | void eeconfig_update_backlight(uint8_t val); | ||
| 94 | #endif | ||
| 95 | |||
| 96 | #ifdef AUDIO_ENABLE | 97 | #ifdef AUDIO_ENABLE |
| 97 | uint8_t eeconfig_read_audio(void); | 98 | uint8_t eeconfig_read_audio(void); |
| 98 | void eeconfig_update_audio(uint8_t val); | 99 | void eeconfig_update_audio(uint8_t val); |
