summaryrefslogtreecommitdiff
path: root/keyboards/buzzard/rev1/config.h
diff options
context:
space:
mode:
authorChristoph Rehmann <1273098+crehmann@users.noreply.github.com>2022-01-10 11:33:48 +0100
committerGitHub <noreply@github.com>2022-01-10 02:33:48 -0800
commit2e19d0d7d14fef69d583886c244d3c67b3c0cc3d (patch)
treee21ec0e671f1264e5a2c30ce650894cadc8374d8 /keyboards/buzzard/rev1/config.h
parentd7eb09949d426af891dd9cf85ad789285422490e (diff)
[Keyboard] Add Buzzard support (#15493)
* add buzzerd (untested, WIP) * configured linear actuator and fixed keymap * configuration tweaks and added custom keymap * add custom tapping term for home row mod * added readme * remove ionide folder * added scroll function to trackpoint * keymap reworked * using one shot shift and removed dynamic macros * reworked default keymap * adapted to latest qmk changes * remove caps word from default keymap * use provided coding guidelines * use get_highest_layer in favour of biton32 * fixed formatting * remove unnecessary define statement
Diffstat (limited to 'keyboards/buzzard/rev1/config.h')
-rw-r--r--keyboards/buzzard/rev1/config.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/keyboards/buzzard/rev1/config.h b/keyboards/buzzard/rev1/config.h
new file mode 100644
index 0000000000..2a7ea22ec1
--- /dev/null
+++ b/keyboards/buzzard/rev1/config.h
@@ -0,0 +1,62 @@
+// Copyright 2021 Christoph Rehmann (crehmann)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0xB077
+#define DEVICE_VER 0x0001
+#define MANUFACTURER crehmann
+#define PRODUCT Buzzard
+
+/* key matrix size */
+/* Rows are doubled up */
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 6
+
+// wiring
+#define MATRIX_ROW_PINS \
+ { F4, F5, F6, F7 }
+#define MATRIX_COL_PINS \
+ { B1, B3, B2, B6, B5, B4}
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL*/
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/*
+ * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
+ */
+#define SOFT_SERIAL_PIN D2
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+#ifdef OLED_ENABLE
+#define OLED_DISPLAY_128X32
+#define SPLIT_OLED_ENABLE
+#endif
+
+#ifdef PS2_USE_INT
+#define PS2_CLOCK_PIN E6
+#define PS2_DATA_PIN D7
+
+#define PS2_INT_INIT() do { \
+ EICRB |= ((1<<ISC61) | \
+ (0<<ISC60)); \
+ } while (0)
+#define PS2_INT_ON() do { \
+ EIMSK |= (1<<INT6); \
+} while (0)
+#define PS2_INT_OFF() do { \
+ EIMSK &= ~(1<<INT6); \
+} while (0)
+#define PS2_INT_VECT INT6_vect
+#define PS2_MOUSE_ROTATE 270 /* Compensate for East-facing device orientation. */
+#endif