config.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. /* key combination for magic key command */
  51. #define IS_COMMAND() ( \
  52. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  53. )
  54. /* control how magic key switches layers */
  55. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  56. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  57. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  58. /* remap magic keys */
  59. //#define MAGIC_KEY_HELP1 H
  60. //#define MAGIC_KEY_HELP2 SLASH
  61. //#define MAGIC_KEY_DEBUG D
  62. //#define MAGIC_KEY_DEBUG_MATRIX X
  63. //#define MAGIC_KEY_DEBUG_KBD K
  64. //#define MAGIC_KEY_DEBUG_MOUSE M
  65. //#define MAGIC_KEY_VERSION V
  66. //#define MAGIC_KEY_STATUS S
  67. //#define MAGIC_KEY_CONSOLE C
  68. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  69. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  70. //#define MAGIC_KEY_LAYER0 0
  71. //#define MAGIC_KEY_LAYER1 1
  72. //#define MAGIC_KEY_LAYER2 2
  73. //#define MAGIC_KEY_LAYER3 3
  74. //#define MAGIC_KEY_LAYER4 4
  75. //#define MAGIC_KEY_LAYER5 5
  76. //#define MAGIC_KEY_LAYER6 6
  77. //#define MAGIC_KEY_LAYER7 7
  78. //#define MAGIC_KEY_LAYER8 8
  79. //#define MAGIC_KEY_LAYER9 9
  80. //#define MAGIC_KEY_BOOTLOADER PAUSE
  81. #define MAGIC_KEY_LOCK BSLS
  82. //#define MAGIC_KEY_EEPROM E
  83. //#define MAGIC_KEY_NKRO N
  84. //#define MAGIC_KEY_SLEEP_LED Z
  85. /*
  86. * Feature disable options
  87. * These options are also useful to firmware size reduction.
  88. */
  89. /* disable debug print */
  90. //#define NO_DEBUG
  91. /* disable print */
  92. //#define NO_PRINT
  93. /* disable action features */
  94. //#define NO_ACTION_LAYER
  95. //#define NO_ACTION_TAPPING
  96. //#define NO_ACTION_ONESHOT
  97. //#define NO_ACTION_MACRO
  98. //#define NO_ACTION_FUNCTION
  99. #endif