config.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  3. * Copyright 2021 Erovia
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. #define DEVICE_VER 0x0000
  18. #undef PRODUCT
  19. #define PRODUCT Planck THK
  20. #define PRODUCT_ID 0x25A7
  21. // THK has a different pin-out
  22. #undef MATRIX_ROW_PINS
  23. #undef MATRIX_COL_PINS
  24. #define MATRIX_ROW_PINS { A7, A6, A5, A4 }
  25. #define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A3, A2, A1, A0, B0 }
  26. #define ENCODERS_PAD_A { B4, B2 }
  27. #define ENCODERS_PAD_B { B3, B1 }
  28. #define TAPPING_TOGGLE 3
  29. #define DIP_SWITCH_PINS { D0, D1, D4, D6 }
  30. // THK uses D5 for audio
  31. #undef AUDIO_PIN
  32. #define AUDIO_PIN D5
  33. // VUSB D- port
  34. #define USB_CFG_DMINUS_BIT 3