]> git.donarmstrong.com Git - tmk_firmware.git/blob - adb_usb/config.h
v3.0 cleanse files
[tmk_firmware.git] / adb_usb / 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      0x0ADB
9 #define MANUFACTURER    t.m.k.
10 #define PRODUCT         ADB keyboard converter
11 #define DESCRIPTION     convert ADB keyboard to USB
12
13 /* matrix size */
14 #define MATRIX_ROWS 16  // keycode bit: 3-0
15 #define MATRIX_COLS 8   // keycode bit: 6-4
16
17
18 /* key combination for command */
19 #define IS_COMMAND() ( \
20     keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
21     keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
22 )
23
24
25 /* mouse keys */
26 #ifdef MOUSEKEY_ENABLE
27 #   define MOUSEKEY_DELAY_TIME 192
28 #endif
29
30
31 /* PS/2 mouse */
32 #ifdef PS2_MOUSE_ENABLE
33 #   define PS2_CLOCK_PORT  PORTF
34 #   define PS2_CLOCK_PIN   PINF
35 #   define PS2_CLOCK_DDR   DDRF
36 #   define PS2_CLOCK_BIT   0
37 #   define PS2_DATA_PORT   PORTF
38 #   define PS2_DATA_PIN    PINF
39 #   define PS2_DATA_DDR    DDRF
40 #   define PS2_DATA_BIT    1
41 #endif
42
43
44 /* ADB port setting */
45 #define ADB_PORT        PORTF
46 #define ADB_PIN         PINF
47 #define ADB_DDR         DDRF
48 #define ADB_DATA_BIT    0
49 //#define ADB_PSW_BIT     1       // optional
50
51 #endif