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.

48 lines
1.2 KiB

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x6060
  7. #define DEVICE_VER 0x0001
  8. #define MANUFACTURER _SPINDLE
  9. #define PRODUCT XMEGA
  10. #define DESCRIPTION test board
  11. /* key matrix size */
  12. #define MATRIX_ROWS 1
  13. #define MATRIX_COLS 1
  14. /* key matrix pins */
  15. #define MATRIX_ROW_PINS { D0 }
  16. #define MATRIX_COL_PINS { A0 }
  17. #define UNUSED_PINS
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* number of backlight levels */
  21. // #define BACKLIGHT_PIN B6
  22. // #define BACKLIGHT_LEVELS 5
  23. /* Set 0 if debouncing isn't needed */
  24. #define DEBOUNCING_DELAY 5
  25. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  26. #define LOCKING_SUPPORT_ENABLE
  27. /* Locking resynchronize hack */
  28. #define LOCKING_RESYNC_ENABLE
  29. /* key combination for command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. /* prevent stuck modifiers */
  34. #define PREVENT_STUCK_MODIFIERS
  35. #undef USE_STATIC_OPTIONS
  36. #define USE_STATIC_OPTIONS (USB_DEVICE_OPT_FULLSPEED | USB_OPT_RC32MCLKSRC | USB_OPT_BUSEVENT_PRIHIGH)
  37. #endif