aboutsummaryrefslogtreecommitdiff
path: root/common/eeconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/eeconfig.h')
-rw-r--r--common/eeconfig.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/common/eeconfig.h b/common/eeconfig.h
index 088171f57..9cf2ff680 100644
--- a/common/eeconfig.h
+++ b/common/eeconfig.h
@@ -26,21 +26,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
26#define EECONFIG_MAGIC (uint16_t *)0 26#define EECONFIG_MAGIC (uint16_t *)0
27#define EECONFIG_DEBUG (uint8_t *)2 27#define EECONFIG_DEBUG (uint8_t *)2
28#define EECONFIG_DEFAULT_LAYER (uint8_t *)3 28#define EECONFIG_DEFAULT_LAYER (uint8_t *)3
29#define EECONFIG_MODIFIER (uint8_t *)4 29#define EECONFIG_KEYCONF (uint8_t *)4
30#define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5 30#define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5
31 31
32 32
33/* config bit */ 33/* debug bit */
34#define EECONFIG_DEBUG_ENABLE (1<<0) 34#define EECONFIG_DEBUG_ENABLE (1<<0)
35#define EECONFIG_DEBUG_MATRIX (1<<1) 35#define EECONFIG_DEBUG_MATRIX (1<<1)
36#define EECONFIG_DEBUG_KEYBOARD (1<<2) 36#define EECONFIG_DEBUG_KEYBOARD (1<<2)
37#define EECONFIG_DEBUG_MOUSE (1<<3) 37#define EECONFIG_DEBUG_MOUSE (1<<3)
38 38
39#define EECONFIG_MODIFIER_CONTROL_CAPSLOCK (1<<0) 39/* keyconf bit */
40#define EECONFIG_MODIFIER_ALT_GUI (1<<1) 40#define EECONFIG_KEYCONF_SWAP_CONTROL_CAPSLOCK (1<<0)
41#define EECONFIG_MODIFIER_ESC_GRAVE (1<<2) 41#define EECONFIG_KEYCONF_CAPSLOCK_TO_CONTROL (1<<1)
42#define EECONFIG_MODIFIER_BACKSPACE_BACKSLASH (1<<3) 42#define EECONFIG_KEYCONF_SWAP_LALT_LGUI (1<<2)
43#define EECONFIG_MODIFIER_NO_GUI (1<<4) 43#define EECONFIG_KEYCONF_SWAP_RALT_RGUI (1<<3)
44#define EECONFIG_KEYCONF_NO_GUI (1<<4)
45#define EECONFIG_KEYCONF_SWAP_GRAVE_ESC (1<<5)
46#define EECONFIG_KEYCONF_SWAP_BACKSLASH_BACKSPACE (1<<6)
44 47
45 48
46bool eeconfig_initialized(void); 49bool eeconfig_initialized(void);
@@ -53,7 +56,7 @@ void eeconfig_write_debug(uint8_t val);
53uint8_t eeconfig_read_defalt_layer(void); 56uint8_t eeconfig_read_defalt_layer(void);
54void eeconfig_write_defalt_layer(uint8_t val); 57void eeconfig_write_defalt_layer(uint8_t val);
55 58
56uint8_t eeconfig_read_modifier(void); 59uint8_t eeconfig_read_keyconf(void);
57void eeconfig_write_modifier(uint8_t val); 60void eeconfig_write_keyconf(uint8_t val);
58 61
59#endif 62#endif