aboutsummaryrefslogtreecommitdiff
path: root/keyboards/buzzard/rev1/config.h
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/buzzard/rev1/config.h
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 000000000..2a7ea22ec
--- /dev/null
+++ b/keyboards/buzzard/rev1/config.h
@@ -0,0 +1,62 @@
1// Copyright 2021 Christoph Rehmann (crehmann)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6/* USB Device descriptor parameter */
7#define VENDOR_ID 0xFEED
8#define PRODUCT_ID 0xB077
9#define DEVICE_VER 0x0001
10#define MANUFACTURER crehmann
11#define PRODUCT Buzzard
12
13/* key matrix size */
14/* Rows are doubled up */
15#define MATRIX_ROWS 8
16#define MATRIX_COLS 6
17
18// wiring
19#define MATRIX_ROW_PINS \
20 { F4, F5, F6, F7 }
21#define MATRIX_COL_PINS \
22 { B1, B3, B2, B6, B5, B4}
23#define UNUSED_PINS
24
25/* COL2ROW, ROW2COL*/
26#define DIODE_DIRECTION COL2ROW
27
28/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
29#define DEBOUNCE 5
30
31/*
32 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
33 */
34#define SOFT_SERIAL_PIN D2
35
36/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
37#define LOCKING_SUPPORT_ENABLE
38/* Locking resynchronize hack */
39#define LOCKING_RESYNC_ENABLE
40
41#ifdef OLED_ENABLE
42#define OLED_DISPLAY_128X32
43#define SPLIT_OLED_ENABLE
44#endif
45
46#ifdef PS2_USE_INT
47#define PS2_CLOCK_PIN E6
48#define PS2_DATA_PIN D7
49
50#define PS2_INT_INIT() do { \
51 EICRB |= ((1<<ISC61) | \
52 (0<<ISC60)); \
53 } while (0)
54#define PS2_INT_ON() do { \
55 EIMSK |= (1<<INT6); \
56} while (0)
57#define PS2_INT_OFF() do { \
58 EIMSK &= ~(1<<INT6); \
59} while (0)
60#define PS2_INT_VECT INT6_vect
61#define PS2_MOUSE_ROTATE 270 /* Compensate for East-facing device orientation. */
62#endif