config.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Copyright 2017 skully <skullydazed@gmail.com>
  3. *
  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. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef CONFIG_H
  18. #define CONFIG_H
  19. #define PREVENT_STUCK_MODIFIERS
  20. /* USB Device descriptor parameter */
  21. #define VENDOR_ID 0xC1ED
  22. #define PRODUCT_ID 0x2340
  23. #define DEVICE_VER 0x0001
  24. #define MANUFACTURER "Clueboard"
  25. #define USBSTR_MANUFACTURER 'C', '\x00', 'l', '\x00', 'u', '\x00', 'e', '\x00', 'b', '\x00', 'o', '\x00', 'a', '\x00', 'r', '\x00', 'd', '\x00'
  26. #define PRODUCT "Simon Tester"
  27. #define USBSTR_PRODUCT 'S', '\x00', 'i', '\x00', 'm', '\x00', 'o', '\x00', 'n', '\x00', ' ', '\x00', 'T', '\x00', 'e', '\x00', 's', '\x00', 't', '\x00', 'e', '\x00', 'r', '\x00'
  28. #define DESCRIPTION A switch tester that plays Simon
  29. /* key matrix size */
  30. #define MATRIX_ROWS 1
  31. #define MATRIX_COLS 4
  32. /*
  33. * Keyboard Matrix Assignments
  34. *
  35. * Change this to how you wired your keyboard
  36. * COLS: AVR pins used for columns, left to right
  37. * ROWS: AVR pins used for rows, top to bottom
  38. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  39. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  40. *
  41. */
  42. /* Note: These are not used for arm boards. They're here purely as documentation.
  43. * #define MATRIX_ROW_PINS { PA7 }
  44. * #define MATRIX_COL_PINS { PA5, PA4, PB6, PB3 }
  45. * #define UNUSED_PINS
  46. */
  47. /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
  48. #define DIODE_DIRECTION CUSTOM_MATRIX
  49. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  50. #define DEBOUNCE 6
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. //#define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. //#define LOCKING_RESYNC_ENABLE
  55. /*
  56. * Force NKRO
  57. *
  58. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  59. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  60. * makefile for this to work.)
  61. *
  62. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  63. * until the next keyboard reset.
  64. *
  65. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  66. * fully operational during normal computer usage.
  67. *
  68. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  69. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  70. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  71. * power-up.
  72. *
  73. */
  74. //#define FORCE_NKRO
  75. /* key combination for magic key command */
  76. #define IS_COMMAND() ( \
  77. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  78. )
  79. /*
  80. * Feature disable options
  81. * These options are also useful to firmware size reduction.
  82. */
  83. /* disable debug print */
  84. //#define NO_DEBUG
  85. /* disable print */
  86. //#define NO_PRINT
  87. /* disable action features */
  88. //#define NO_ACTION_LAYER
  89. //#define NO_ACTION_TAPPING
  90. //#define NO_ACTION_ONESHOT
  91. //#define NO_ACTION_MACRO
  92. //#define NO_ACTION_FUNCTION
  93. /*
  94. * MIDI options
  95. */
  96. /* Prevent use of disabled MIDI features in the keymap */
  97. //#define MIDI_ENABLE_STRICT 1
  98. /* enable basic MIDI features:
  99. - MIDI notes can be sent when in Music mode is on
  100. */
  101. //#define MIDI_BASIC
  102. /* enable advanced MIDI features:
  103. - MIDI notes can be added to the keymap
  104. - Octave shift and transpose
  105. - Virtual sustain, portamento, and modulation wheel
  106. - etc.
  107. */
  108. //#define MIDI_ADVANCED
  109. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  110. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  111. /* Remap PA11->PA9 and PA12->PA10 on STM32 devices that require it.
  112. *
  113. * The following MCU's are known to require this:
  114. *
  115. * STM32F042x6
  116. */
  117. #define STM32_REMAP_PINS
  118. #endif