diff options
author | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-07-07 17:13:22 +0200 |
---|---|---|
committer | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-07-07 17:13:22 +0200 |
commit | 97dfbd1afce005392aa8f067e89bdf95334bdea5 (patch) | |
tree | 1b198dd239bcb49564c31f124978abde0b467a81 /keyboards/lets_split/split_util.h | |
parent | 2e1cfaf73fccdfaba2d7542f00bd7c3d49998d5d (diff) | |
parent | ad43d450ca1b988d196da80e2a745f45f24068f6 (diff) | |
download | qmk_firmware-97dfbd1afce005392aa8f067e89bdf95334bdea5.tar.gz qmk_firmware-97dfbd1afce005392aa8f067e89bdf95334bdea5.tar.xz |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboards/lets_split/split_util.h')
-rw-r--r-- | keyboards/lets_split/split_util.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/lets_split/split_util.h b/keyboards/lets_split/split_util.h new file mode 100644 index 000000000..6b896679c --- /dev/null +++ b/keyboards/lets_split/split_util.h @@ -0,0 +1,22 @@ +#ifndef SPLIT_KEYBOARD_UTIL_H +#define SPLIT_KEYBOARD_UTIL_H + +#include <stdbool.h> + +#ifdef EE_HANDS + #define EECONFIG_BOOTMAGIC_END (uint8_t *)10 + #define EECONFIG_HANDEDNESS EECONFIG_BOOTMAGIC_END +#endif + +#define SLAVE_I2C_ADDRESS 0x32 + +extern volatile bool isLeftHand; + +// slave version of matix scan, defined in matrix.c +void matrix_slave_scan(void); + +void split_keyboard_setup(void); +bool has_usb(void); +void keyboard_slave_loop(void); + +#endif |