blob: 66c1a9a42ef8a49d357962d73770d5faaa963331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright 2021 Christoph Rehmann (crehmann)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
/* 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}
/* 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
|