diff options
Diffstat (limited to 'adb/config.h')
| -rw-r--r-- | adb/config.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/adb/config.h b/adb/config.h new file mode 100644 index 000000000..099a24bfa --- /dev/null +++ b/adb/config.h | |||
| @@ -0,0 +1,47 @@ | |||
| 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 | /* define if matrix has ghost */ | ||
| 17 | //#define MATRIX_HAS_GHOST | ||
| 18 | |||
| 19 | /* USB NKey Rollover */ | ||
| 20 | #ifdef USB_NKRO_ENABLE | ||
| 21 | #endif | ||
| 22 | |||
| 23 | /* mouse keys */ | ||
| 24 | #ifdef MOUSEKEY_ENABLE | ||
| 25 | # define MOUSEKEY_DELAY_TIME 192 | ||
| 26 | #endif | ||
| 27 | |||
| 28 | /* PS/2 mouse */ | ||
| 29 | #ifdef PS2_MOUSE_ENABLE | ||
| 30 | # define PS2_CLOCK_PORT PORTF | ||
| 31 | # define PS2_CLOCK_PIN PINF | ||
| 32 | # define PS2_CLOCK_DDR DDRF | ||
| 33 | # define PS2_CLOCK_BIT 0 | ||
| 34 | # define PS2_DATA_PORT PORTF | ||
| 35 | # define PS2_DATA_PIN PINF | ||
| 36 | # define PS2_DATA_DDR DDRF | ||
| 37 | # define PS2_DATA_BIT 1 | ||
| 38 | #endif | ||
| 39 | |||
| 40 | /* ADB port setting */ | ||
| 41 | #define ADB_PORT PORTF | ||
| 42 | #define ADB_PIN PINF | ||
| 43 | #define ADB_DDR DDRF | ||
| 44 | #define ADB_DATA_BIT 0 | ||
| 45 | //#define ADB_PSW_BIT 1 // optional | ||
| 46 | |||
| 47 | #endif | ||
