config.h 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2021 Christoph Rehmann (crehmann)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. // wiring
  5. #define MATRIX_ROW_PINS \
  6. { F4, F5, F6, F7 }
  7. #define MATRIX_COL_PINS \
  8. { B1, B3, B2, B6, B5, B4}
  9. /* COL2ROW, ROW2COL*/
  10. #define DIODE_DIRECTION COL2ROW
  11. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  12. #define LOCKING_SUPPORT_ENABLE
  13. /* Locking resynchronize hack */
  14. #define LOCKING_RESYNC_ENABLE
  15. #ifdef OLED_ENABLE
  16. #define OLED_DISPLAY_128X32
  17. #define SPLIT_OLED_ENABLE
  18. #endif
  19. #ifdef PS2_DRIVER_INTERRUPT
  20. #define PS2_CLOCK_PIN E6
  21. #define PS2_DATA_PIN D7
  22. #define PS2_INT_INIT() do { \
  23. EICRB |= ((1<<ISC61) | \
  24. (0<<ISC60)); \
  25. } while (0)
  26. #define PS2_INT_ON() do { \
  27. EIMSK |= (1<<INT6); \
  28. } while (0)
  29. #define PS2_INT_OFF() do { \
  30. EIMSK &= ~(1<<INT6); \
  31. } while (0)
  32. #define PS2_INT_VECT INT6_vect
  33. #define PS2_MOUSE_ROTATE 270 /* Compensate for East-facing device orientation. */
  34. #endif