config.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef STAPELBERG_CONFIG_H
  2. #define STAPELBERG_CONFIG_H
  3. #include "../config.h"
  4. #include "config_common.h"
  5. /* USB Device descriptor parameter */
  6. #define PRODUCT_ID 0x6060
  7. #define DEVICE_VER 0x0002
  8. /* key matrix size */
  9. #define MATRIX_ROWS 15
  10. #define MATRIX_COLS 7
  11. /*
  12. * Keyboard Matrix Assignments
  13. *
  14. * Change this to how you wired your keyboard
  15. * COLS: AVR pins used for columns, left to right
  16. * ROWS: AVR pins used for rows, top to bottom
  17. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  18. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  19. *
  20. */
  21. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5, D6, D7, C0, C1, C2, C3, C4, C5, C6 }
  22. #define MATRIX_COL_PINS { B0, B1, B2, B3, B4, B5, B6 }
  23. #define UNUSED_PINS
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION COL2ROW
  26. #define LED_NUM_LOCK_PIN F2
  27. #define LED_CAPS_LOCK_PIN F3
  28. #define LED_SCROLL_LOCK_PIN F1
  29. #define LED_COMPOSE_PIN F0
  30. #define LED_PIN_ON_STATE 0
  31. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  32. #define DEBOUNCE 5
  33. /* don't know if this should be defined at the board or top level. Assuming board
  34. #define MOUSEKEY_DELAY 100
  35. #define MOUSEKEY_INTERVAL 20
  36. #define MOUSEKEY_MAX_SPEED 3
  37. #define MOUSEKEY_TIME_TO_MAX 10
  38. */
  39. #define IGNORE_MOD_TAP_INTERRUPT
  40. #endif