aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/eeconfig.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2019-08-30 15:01:52 -0700
commitb624f32f944acdc59dcb130674c09090c5c404cb (patch)
treebc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /tmk_core/common/eeconfig.h
parent61af76a10d00aba185b8338604171de490a13e3b (diff)
downloadqmk_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.h83
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);
80void eeconfig_disable(void); 79void eeconfig_disable(void);
81 80
82uint8_t eeconfig_read_debug(void); 81uint8_t eeconfig_read_debug(void);
83void eeconfig_update_debug(uint8_t val); 82void eeconfig_update_debug(uint8_t val);
84 83
85uint8_t eeconfig_read_default_layer(void); 84uint8_t eeconfig_read_default_layer(void);
86void eeconfig_update_default_layer(uint8_t val); 85void eeconfig_update_default_layer(uint8_t val);
87 86
88uint16_t eeconfig_read_keymap(void); 87uint16_t eeconfig_read_keymap(void);
89void eeconfig_update_keymap(uint16_t val); 88void eeconfig_update_keymap(uint16_t val);
90 89
91#ifdef BACKLIGHT_ENABLE 90#ifdef BACKLIGHT_ENABLE
92uint8_t eeconfig_read_backlight(void); 91uint8_t eeconfig_read_backlight(void);
93void eeconfig_update_backlight(uint8_t val); 92void eeconfig_update_backlight(uint8_t val);
94#endif 93#endif
95 94
96#ifdef AUDIO_ENABLE 95#ifdef AUDIO_ENABLE
97uint8_t eeconfig_read_audio(void); 96uint8_t eeconfig_read_audio(void);
98void eeconfig_update_audio(uint8_t val); 97void eeconfig_update_audio(uint8_t val);
99#endif 98#endif
100 99
101uint32_t eeconfig_read_kb(void); 100uint32_t eeconfig_read_kb(void);
102void eeconfig_update_kb(uint32_t val); 101void eeconfig_update_kb(uint32_t val);
103uint32_t eeconfig_read_user(void); 102uint32_t eeconfig_read_user(void);
104void eeconfig_update_user(uint32_t val); 103void eeconfig_update_user(uint32_t val);
105 104
106#ifdef HAPTIC_ENABLE 105#ifdef HAPTIC_ENABLE
107uint32_t eeconfig_read_haptic(void); 106uint32_t eeconfig_read_haptic(void);
108void eeconfig_update_haptic(uint32_t val); 107void eeconfig_update_haptic(uint32_t val);
109#endif 108#endif
110 109
111#endif 110#endif