diff options
author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /tmk_core/common/eeconfig.h | |
parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip |
clang-format changes
Diffstat (limited to 'tmk_core/common/eeconfig.h')
-rw-r--r-- | tmk_core/common/eeconfig.h | 83 |
1 files changed, 41 insertions, 42 deletions
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h index a5fc801a3..aea4eff9f 100644 --- a/tmk_core/common/eeconfig.h +++ b/tmk_core/common/eeconfig.h | |||
@@ -21,49 +21,48 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | #include <stdint.h> | 21 | #include <stdint.h> |
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | 23 | ||
24 | |||
25 | #ifndef EECONFIG_MAGIC_NUMBER | 24 | #ifndef EECONFIG_MAGIC_NUMBER |
26 | # define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEEC | 25 | # define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEEC |
27 | #endif | 26 | #endif |
28 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF | 27 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF |
29 | 28 | ||
30 | /* EEPROM parameter address */ | 29 | /* EEPROM parameter address */ |
31 | #define EECONFIG_MAGIC (uint16_t *)0 | 30 | #define EECONFIG_MAGIC (uint16_t *)0 |
32 | #define EECONFIG_DEBUG (uint8_t *)2 | 31 | #define EECONFIG_DEBUG (uint8_t *)2 |
33 | #define EECONFIG_DEFAULT_LAYER (uint8_t *)3 | 32 | #define EECONFIG_DEFAULT_LAYER (uint8_t *)3 |
34 | #define EECONFIG_KEYMAP (uint8_t *)4 | 33 | #define EECONFIG_KEYMAP (uint8_t *)4 |
35 | #define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5 | 34 | #define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5 |
36 | #define EECONFIG_BACKLIGHT (uint8_t *)6 | 35 | #define EECONFIG_BACKLIGHT (uint8_t *)6 |
37 | #define EECONFIG_AUDIO (uint8_t *)7 | 36 | #define EECONFIG_AUDIO (uint8_t *)7 |
38 | #define EECONFIG_RGBLIGHT (uint32_t *)8 | 37 | #define EECONFIG_RGBLIGHT (uint32_t *)8 |
39 | #define EECONFIG_UNICODEMODE (uint8_t *)12 | 38 | #define EECONFIG_UNICODEMODE (uint8_t *)12 |
40 | #define EECONFIG_STENOMODE (uint8_t *)13 | 39 | #define EECONFIG_STENOMODE (uint8_t *)13 |
41 | // EEHANDS for two handed boards | 40 | // EEHANDS for two handed boards |
42 | #define EECONFIG_HANDEDNESS (uint8_t *)14 | 41 | #define EECONFIG_HANDEDNESS (uint8_t *)14 |
43 | #define EECONFIG_KEYBOARD (uint32_t *)15 | 42 | #define EECONFIG_KEYBOARD (uint32_t *)15 |
44 | #define EECONFIG_USER (uint32_t *)19 | 43 | #define EECONFIG_USER (uint32_t *)19 |
45 | #define EECONFIG_VELOCIKEY (uint8_t *)23 | 44 | #define EECONFIG_VELOCIKEY (uint8_t *)23 |
46 | 45 | ||
47 | #define EECONFIG_HAPTIC (uint32_t *)24 | 46 | #define EECONFIG_HAPTIC (uint32_t *)24 |
48 | #define EECONFIG_RGB_MATRIX (uint32_t *)28 | 47 | #define EECONFIG_RGB_MATRIX (uint32_t *)28 |
49 | #define EECONFIG_RGB_MATRIX_SPEED (uint8_t *)32 | 48 | #define EECONFIG_RGB_MATRIX_SPEED (uint8_t *)32 |
50 | // TODO: Combine these into a single word and single block of EEPROM | 49 | // TODO: Combine these into a single word and single block of EEPROM |
51 | #define EECONFIG_KEYMAP_UPPER_BYTE (uint8_t *)33 | 50 | #define EECONFIG_KEYMAP_UPPER_BYTE (uint8_t *)33 |
52 | /* debug bit */ | 51 | /* debug bit */ |
53 | #define EECONFIG_DEBUG_ENABLE (1<<0) | 52 | #define EECONFIG_DEBUG_ENABLE (1 << 0) |
54 | #define EECONFIG_DEBUG_MATRIX (1<<1) | 53 | #define EECONFIG_DEBUG_MATRIX (1 << 1) |
55 | #define EECONFIG_DEBUG_KEYBOARD (1<<2) | 54 | #define EECONFIG_DEBUG_KEYBOARD (1 << 2) |
56 | #define EECONFIG_DEBUG_MOUSE (1<<3) | 55 | #define EECONFIG_DEBUG_MOUSE (1 << 3) |
57 | 56 | ||
58 | /* keyconf bit */ | 57 | /* keyconf bit */ |
59 | #define EECONFIG_KEYMAP_SWAP_CONTROL_CAPSLOCK (1<<0) | 58 | #define EECONFIG_KEYMAP_SWAP_CONTROL_CAPSLOCK (1 << 0) |
60 | #define EECONFIG_KEYMAP_CAPSLOCK_TO_CONTROL (1<<1) | 59 | #define EECONFIG_KEYMAP_CAPSLOCK_TO_CONTROL (1 << 1) |
61 | #define EECONFIG_KEYMAP_SWAP_LALT_LGUI (1<<2) | 60 | #define EECONFIG_KEYMAP_SWAP_LALT_LGUI (1 << 2) |
62 | #define EECONFIG_KEYMAP_SWAP_RALT_RGUI (1<<3) | 61 | #define EECONFIG_KEYMAP_SWAP_RALT_RGUI (1 << 3) |
63 | #define EECONFIG_KEYMAP_NO_GUI (1<<4) | 62 | #define EECONFIG_KEYMAP_NO_GUI (1 << 4) |
64 | #define EECONFIG_KEYMAP_SWAP_GRAVE_ESC (1<<5) | 63 | #define EECONFIG_KEYMAP_SWAP_GRAVE_ESC (1 << 5) |
65 | #define EECONFIG_KEYMAP_SWAP_BACKSLASH_BACKSPACE (1<<6) | 64 | #define EECONFIG_KEYMAP_SWAP_BACKSLASH_BACKSPACE (1 << 6) |
66 | #define EECONFIG_KEYMAP_NKRO (1<<7) | 65 | #define EECONFIG_KEYMAP_NKRO (1 << 7) |
67 | 66 | ||
68 | #define EECONFIG_KEYMAP_LOWER_BYTE EECONFIG_KEYMAP | 67 | #define EECONFIG_KEYMAP_LOWER_BYTE EECONFIG_KEYMAP |
69 | 68 | ||
@@ -80,32 +79,32 @@ void eeconfig_enable(void); | |||
80 | void eeconfig_disable(void); | 79 | void eeconfig_disable(void); |
81 | 80 | ||
82 | uint8_t eeconfig_read_debug(void); | 81 | uint8_t eeconfig_read_debug(void); |
83 | void eeconfig_update_debug(uint8_t val); | 82 | void eeconfig_update_debug(uint8_t val); |
84 | 83 | ||
85 | uint8_t eeconfig_read_default_layer(void); | 84 | uint8_t eeconfig_read_default_layer(void); |
86 | void eeconfig_update_default_layer(uint8_t val); | 85 | void eeconfig_update_default_layer(uint8_t val); |
87 | 86 | ||
88 | uint16_t eeconfig_read_keymap(void); | 87 | uint16_t eeconfig_read_keymap(void); |
89 | void eeconfig_update_keymap(uint16_t val); | 88 | void eeconfig_update_keymap(uint16_t val); |
90 | 89 | ||
91 | #ifdef BACKLIGHT_ENABLE | 90 | #ifdef BACKLIGHT_ENABLE |
92 | uint8_t eeconfig_read_backlight(void); | 91 | uint8_t eeconfig_read_backlight(void); |
93 | void eeconfig_update_backlight(uint8_t val); | 92 | void eeconfig_update_backlight(uint8_t val); |
94 | #endif | 93 | #endif |
95 | 94 | ||
96 | #ifdef AUDIO_ENABLE | 95 | #ifdef AUDIO_ENABLE |
97 | uint8_t eeconfig_read_audio(void); | 96 | uint8_t eeconfig_read_audio(void); |
98 | void eeconfig_update_audio(uint8_t val); | 97 | void eeconfig_update_audio(uint8_t val); |
99 | #endif | 98 | #endif |
100 | 99 | ||
101 | uint32_t eeconfig_read_kb(void); | 100 | uint32_t eeconfig_read_kb(void); |
102 | void eeconfig_update_kb(uint32_t val); | 101 | void eeconfig_update_kb(uint32_t val); |
103 | uint32_t eeconfig_read_user(void); | 102 | uint32_t eeconfig_read_user(void); |
104 | void eeconfig_update_user(uint32_t val); | 103 | void eeconfig_update_user(uint32_t val); |
105 | 104 | ||
106 | #ifdef HAPTIC_ENABLE | 105 | #ifdef HAPTIC_ENABLE |
107 | uint32_t eeconfig_read_haptic(void); | 106 | uint32_t eeconfig_read_haptic(void); |
108 | void eeconfig_update_haptic(uint32_t val); | 107 | void eeconfig_update_haptic(uint32_t val); |
109 | #endif | 108 | #endif |
110 | 109 | ||
111 | #endif | 110 | #endif |