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.h 985B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 0xBEE0
  7. #define MANUFACTURER t.m.k.
  8. #define PRODUCT Macway mod
  9. #define DESCRIPTION t.m.k. keyboard firmware for Macway mod
  10. /* matrix size */
  11. #define MATRIX_ROWS 9
  12. #define MATRIX_COLS 8
  13. /* define if matrix has ghost */
  14. #define MATRIX_HAS_GHOST
  15. /* key combination for command */
  16. #define IS_COMMAND() ( \
  17. keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
  18. keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
  19. )
  20. /* mouse keys */
  21. #ifdef MOUSEKEY_ENABLE
  22. # define MOUSEKEY_DELAY_TIME 192
  23. #endif
  24. /* PS/2 mouse */
  25. #ifdef PS2_MOUSE_ENABLE
  26. # define PS2_CLOCK_PORT PORTF
  27. # define PS2_CLOCK_PIN PINF
  28. # define PS2_CLOCK_DDR DDRF
  29. # define PS2_CLOCK_BIT 0
  30. # define PS2_DATA_PORT PORTF
  31. # define PS2_DATA_PIN PINF
  32. # define PS2_DATA_DDR DDRF
  33. # define PS2_DATA_BIT 1
  34. #endif
  35. #endif