diff options
Diffstat (limited to 'ps2_usb/config_pjrc.h')
| -rw-r--r-- | ps2_usb/config_pjrc.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ps2_usb/config_pjrc.h b/ps2_usb/config_pjrc.h new file mode 100644 index 000000000..6205c4801 --- /dev/null +++ b/ps2_usb/config_pjrc.h | |||
| @@ -0,0 +1,42 @@ | |||
| 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 0x6512 | ||
| 9 | #define MANUFACTURER t.m.k. | ||
| 10 | #define PRODUCT PS/2 keyboard converter | ||
| 11 | #define DESCRIPTION convert PS/2 keyboard to USB | ||
| 12 | |||
| 13 | |||
| 14 | /* matrix size */ | ||
| 15 | #define MATRIX_ROWS 32 // keycode bit: 3-0 | ||
| 16 | #define MATRIX_COLS 8 // keycode bit: 6-4 | ||
| 17 | |||
| 18 | |||
| 19 | /* key combination for command */ | ||
| 20 | #define IS_COMMAND() ( \ | ||
| 21 | keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \ | ||
| 22 | keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \ | ||
| 23 | ) | ||
| 24 | |||
| 25 | |||
| 26 | /* mouse keys */ | ||
| 27 | #ifdef MOUSEKEY_ENABLE | ||
| 28 | # define MOUSEKEY_DELAY_TIME 255 | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | /* PS/2 lines */ | ||
| 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 | |||
| 42 | #endif | ||
