diff options
Diffstat (limited to 'keyboards/crkbd/rev1/legacy/split_util.h')
| -rw-r--r-- | keyboards/crkbd/rev1/legacy/split_util.h | 37 |
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 | /* | ||
| 2 | Copyright 2019 @foostan | ||
| 3 | Copyright 2020 Drashna Jaelre <@drashna> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along 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 | |||
| 27 | extern volatile bool isLeftHand; | ||
| 28 | |||
| 29 | // slave version of matix scan, defined in matrix.c | ||
| 30 | void matrix_slave_scan(void); | ||
| 31 | |||
| 32 | void split_keyboard_setup(void); | ||
| 33 | bool has_usb(void); | ||
| 34 | |||
| 35 | void matrix_master_OLED_init (void); | ||
| 36 | |||
| 37 | #endif | ||
