summaryrefslogtreecommitdiff
path: root/keyboards/vitamins_included/split_util.c
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2018-05-15 10:50:24 -0400
committerErez Zukerman <bulk@ezuk.org>2018-05-15 10:50:24 -0400
commit5272218ac9cff7ce5af8cfda9129dc03b7aafa49 (patch)
tree61ad3987770684afd55cbdd12bca48a221d83713 /keyboards/vitamins_included/split_util.c
parent0592d23b74142a554c9e36d2da7bf525fbe3a4c0 (diff)
parente41147da929afd15c1088226893cc02537650284 (diff)
Merge branch 'master' into hf/shinydox
Diffstat (limited to 'keyboards/vitamins_included/split_util.c')
-rw-r--r--keyboards/vitamins_included/split_util.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/vitamins_included/split_util.c b/keyboards/vitamins_included/split_util.c
new file mode 100644
index 0000000000..b86ad137bf
--- /dev/null
+++ b/keyboards/vitamins_included/split_util.c
@@ -0,0 +1,20 @@
+#include <avr/io.h>
+#include <avr/wdt.h>
+#include <avr/power.h>
+#include <avr/interrupt.h>
+#include <util/delay.h>
+#include <avr/eeprom.h>
+#include "split_util.h"
+#include "matrix.h"
+#include "keyboard.h"
+#include "config.h"
+#include "timer.h"
+#include "debug.h"
+
+volatile bool isLeftHand = true;
+volatile bool contacted_by_master = false;
+
+// this code runs before the usb and keyboard is initialized
+void matrix_setup(void) {
+ isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
+}