config.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef CONFIG_H
  15. #define CONFIG_H
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x6060
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Nobody
  22. #define PRODUCT retro_refit
  23. #define DESCRIPTION Retro Refit
  24. /* key matrix size */
  25. #define MATRIX_ROWS 11
  26. #define MATRIX_COLS 8
  27. // See note in retro_refit.h for an explanation of how this matrix is wired up
  28. #define MATRIX_ROW_PINS { D4, D7, B4, B5, B6, F7, F6, F5, F4, F1, F0 }
  29. #define MATRIX_COL_PINS { B0, B1, B2, B3, D2, D3, C7, D5 }
  30. #define UNUSED_PINS
  31. /* COL2ROW or ROW2COL */
  32. #define DIODE_DIRECTION COL2ROW
  33. /* define if matrix has ghost */
  34. //#define MATRIX_HAS_GHOST
  35. /* number of backlight levels */
  36. #define BACKLIGHT_LEVELS 0
  37. /* Set 0 if debouncing isn't needed */
  38. #define DEBOUNCING_DELAY 5
  39. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  40. #define LOCKING_SUPPORT_ENABLE
  41. /* Locking resynchronize hack */
  42. #define LOCKING_RESYNC_ENABLE
  43. /* Force NKRO Mode - If forced on, must be disabled via magic key (default = LShift+RShift+N) */
  44. #define FORCE_NKRO
  45. /*
  46. * Magic key options
  47. * These options allow the magic key functionality to be changed. This is useful
  48. * if your keyboard/keypad is missing keys and you want magic key support.
  49. */
  50. /* control how magic key switches layers */
  51. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  52. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  53. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  54. /* remap magic keys */
  55. //#define MAGIC_KEY_HELP1 H
  56. //#define MAGIC_KEY_HELP2 SLASH
  57. //#define MAGIC_KEY_DEBUG D
  58. //#define MAGIC_KEY_DEBUG_MATRIX X
  59. //#define MAGIC_KEY_DEBUG_KBD K
  60. //#define MAGIC_KEY_DEBUG_MOUSE M
  61. //#define MAGIC_KEY_VERSION V
  62. //#define MAGIC_KEY_STATUS S
  63. //#define MAGIC_KEY_CONSOLE C
  64. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  65. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  66. //#define MAGIC_KEY_LAYER0 0
  67. //#define MAGIC_KEY_LAYER1 1
  68. //#define MAGIC_KEY_LAYER2 2
  69. //#define MAGIC_KEY_LAYER3 3
  70. //#define MAGIC_KEY_LAYER4 4
  71. //#define MAGIC_KEY_LAYER5 5
  72. //#define MAGIC_KEY_LAYER6 6
  73. //#define MAGIC_KEY_LAYER7 7
  74. //#define MAGIC_KEY_LAYER8 8
  75. //#define MAGIC_KEY_LAYER9 9
  76. //#define MAGIC_KEY_BOOTLOADER PAUSE
  77. #define MAGIC_KEY_LOCK BSLS
  78. //#define MAGIC_KEY_EEPROM E
  79. //#define MAGIC_KEY_NKRO N
  80. //#define MAGIC_KEY_SLEEP_LED Z
  81. /*
  82. * Feature disable options
  83. * These options are also useful to firmware size reduction.
  84. */
  85. /* disable debug print */
  86. //#define NO_DEBUG
  87. /* disable print */
  88. //#define NO_PRINT
  89. /* disable action features */
  90. //#define NO_ACTION_LAYER
  91. //#define NO_ACTION_TAPPING
  92. //#define NO_ACTION_ONESHOT
  93. //#define NO_ACTION_MACRO
  94. //#define NO_ACTION_FUNCTION
  95. #endif