]> git.gir.st - tmk_keyboard.git/blob - macway/config.h
fixed macway to comply new API.
[tmk_keyboard.git] / macway / config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 /* controller configuration */
5 #include "controller_teensy.h"
6
7 #define VENDOR_ID 0xFEED
8 #define PRODUCT_ID 0xBEE0
9 #define MANUFACTURER t.m.k.
10 #define PRODUCT Macway mod
11 #define DESCRIPTION t.m.k. keyboard firmware for Macway mod
12
13
14 /* matrix size */
15 #define MATRIX_ROWS 9
16 #define MATRIX_COLS 8
17 /* define if matrix has ghost */
18 #define MATRIX_HAS_GHOST
19
20
21 /* key combination for command */
22 #define IS_COMMAND() ( \
23 keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
24 keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
25 )
26
27
28 /* mouse keys */
29 #ifdef MOUSEKEY_ENABLE
30 # define MOUSEKEY_DELAY_TIME 192
31 #endif
32
33
34 /* PS/2 mouse */
35 #ifdef PS2_MOUSE_ENABLE
36 # define PS2_CLOCK_PORT PORTF
37 # define PS2_CLOCK_PIN PINF
38 # define PS2_CLOCK_DDR DDRF
39 # define PS2_CLOCK_BIT 0
40 # define PS2_DATA_PORT PORTF
41 # define PS2_DATA_PIN PINF
42 # define PS2_DATA_DDR DDRF
43 # define PS2_DATA_BIT 1
44 #endif
45
46 #endif
Imprint / Impressum