aboutsummaryrefslogtreecommitdiff
path: root/users/cwebster2/cwebster2.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/cwebster2/cwebster2.h')
-rw-r--r--users/cwebster2/cwebster2.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/users/cwebster2/cwebster2.h b/users/cwebster2/cwebster2.h
new file mode 100644
index 000000000..3d315d674
--- /dev/null
+++ b/users/cwebster2/cwebster2.h
@@ -0,0 +1,51 @@
1/* Copyright 2020 Casey Webster <casey@e1337.dev>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "my_miryoku.h"
19#include "keycodes.h"
20#include "eeprom.h"
21
22#define LAYOUT_kyria_wrapper(...) LAYOUT(__VA_ARGS__)
23#define LAYOUT_zen_wrapper(...) LAYOUT(__VA_ARGS__)
24
25enum userspace_layers {
26 _COLEMAK = 0,
27 _QWERTY,
28 _GAME,
29 _FN,
30 _SYMBOLS,
31 _NUM,
32 _NAV,
33 _MOUSE,
34 _MEDIA,
35 __LAST
36};
37
38void keyboard_post_init_rgb(void);
39void matrix_scan_keymap(void);
40void eeconfig_init_keymap(void);
41bool hasAllBitsInMask(uint8_t value, uint8_t mask);
42
43
44typedef union {
45 uint32_t raw;
46 struct {
47 bool rgb_layer_change :1;
48 };
49} userspace_config_t;
50
51extern userspace_config_t userspace_config;