Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config_pjrc.h 918B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. /* controller configuration */
  4. #include "controller_teensy.h"
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x6512
  7. #define MANUFACTURER t.m.k.
  8. #define PRODUCT PS/2 keyboard converter
  9. #define DESCRIPTION convert PS/2 keyboard to USB
  10. /* matrix size */
  11. #define MATRIX_ROWS 32 // keycode bit: 3-0
  12. #define MATRIX_COLS 8 // keycode bit: 6-4
  13. /* key combination for command */
  14. #define IS_COMMAND() ( \
  15. keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
  16. keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
  17. )
  18. /* mouse keys */
  19. #ifdef MOUSEKEY_ENABLE
  20. # define MOUSEKEY_DELAY_TIME 255
  21. #endif
  22. /* PS/2 lines */
  23. #define PS2_CLOCK_PORT PORTF
  24. #define PS2_CLOCK_PIN PINF
  25. #define PS2_CLOCK_DDR DDRF
  26. #define PS2_CLOCK_BIT 0
  27. #define PS2_DATA_PORT PORTF
  28. #define PS2_DATA_PIN PINF
  29. #define PS2_DATA_DDR DDRF
  30. #define PS2_DATA_BIT 1
  31. #endif