summaryrefslogtreecommitdiff
path: root/users/cwebster2/cwebster2.h
blob: 3d315d67401d94b28605625f875658211ecaab14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* Copyright 2020 Casey Webster <casey@e1337.dev>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

#include "my_miryoku.h"
#include "keycodes.h"
#include "eeprom.h"

#define LAYOUT_kyria_wrapper(...)  LAYOUT(__VA_ARGS__)
#define LAYOUT_zen_wrapper(...)    LAYOUT(__VA_ARGS__)

enum userspace_layers {
    _COLEMAK = 0,
    _QWERTY,
    _GAME,
    _FN,
    _SYMBOLS,
    _NUM,
    _NAV,
    _MOUSE,
    _MEDIA,
    __LAST
};

void keyboard_post_init_rgb(void);
void matrix_scan_keymap(void);
void eeconfig_init_keymap(void);
bool hasAllBitsInMask(uint8_t value, uint8_t mask);


typedef union {
    uint32_t raw;
    struct {
        bool rgb_layer_change :1;
    };
} userspace_config_t;

extern userspace_config_t userspace_config;