From 89838d0939f3370635b8f1c7068641430a6552ca Mon Sep 17 00:00:00 2001 From: Danny Date: Wed, 15 Aug 2018 12:27:34 -0400 Subject: Keyboard: Migrate Quefrency to use split common files (#3642) --- keyboards/quefrency/split_util.c | 80 ---------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 keyboards/quefrency/split_util.c (limited to 'keyboards/quefrency/split_util.c') diff --git a/keyboards/quefrency/split_util.c b/keyboards/quefrency/split_util.c deleted file mode 100644 index 2704e30e04..0000000000 --- a/keyboards/quefrency/split_util.c +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include "split_util.h" -#include "matrix.h" -#include "keyboard.h" -#include "config.h" -#include "timer.h" -#include "pincontrol.h" - -#ifdef USE_I2C -# include "i2c.h" -#else -# include "serial.h" -#endif - -volatile bool isLeftHand = true; - -static void setup_handedness(void) { - // Test D2 pin for handedness, if D2 is grounded, it's the right hand - pinMode(D2, PinDirectionInput); - isLeftHand = digitalRead(D2); -} - -static void keyboard_master_setup(void) { -#ifdef USE_I2C - i2c_master_init(); -#ifdef SSD1306OLED - matrix_master_OLED_init(); -#endif -#else - serial_master_init(); -#endif -} - -static void keyboard_slave_setup(void) { - timer_init(); -#ifdef USE_I2C - i2c_slave_init(SLAVE_I2C_ADDRESS); -#else - serial_slave_init(); -#endif -} - -bool has_usb(void) { - USBCON |= (1 << OTGPADE); //enables VBUS pad - _delay_us(5); - return (USBSTA & (1<