aboutsummaryrefslogtreecommitdiff
path: root/keyboards/crkbd/rev1/legacy/split_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/crkbd/rev1/legacy/split_util.h')
-rw-r--r--keyboards/crkbd/rev1/legacy/split_util.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/crkbd/rev1/legacy/split_util.h b/keyboards/crkbd/rev1/legacy/split_util.h
new file mode 100644
index 000000000..414763bff
--- /dev/null
+++ b/keyboards/crkbd/rev1/legacy/split_util.h
@@ -0,0 +1,37 @@
1/*
2Copyright 2019 @foostan
3Copyright 2020 Drashna Jaelre <@drashna>
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef SPLIT_KEYBOARD_UTIL_H
20#define SPLIT_KEYBOARD_UTIL_H
21
22#include <stdbool.h>
23#include "eeconfig.h"
24
25#define SLAVE_I2C_ADDRESS 0x32
26
27extern volatile bool isLeftHand;
28
29// slave version of matix scan, defined in matrix.c
30void matrix_slave_scan(void);
31
32void split_keyboard_setup(void);
33bool has_usb(void);
34
35void matrix_master_OLED_init (void);
36
37#endif