You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.6 KiB

  1. /*
  2. * Copyright 2018 Jack Humbert <jack.humb@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 REV3_CONFIG_H
  18. #define REV3_CONFIG_H
  19. /* USB Device descriptor parameter */
  20. #define DEVICE_VER 0x0003
  21. #undef MATRIX_ROWS
  22. #undef MATRIX_COLS
  23. /* key matrix size */
  24. #define MATRIX_ROWS 10
  25. #define MATRIX_COLS 6
  26. #undef MATRIX_ROW_PINS
  27. #undef MATRIX_COL_PINS
  28. #define MATRIX_ROW_PINS { A10, A9, A8, B15, C13, C14, C15, A2, A3, A6 }
  29. #define MATRIX_COL_PINS { B11, B10, B2, B1, A7, B0 }
  30. #define UNUSED_PINS
  31. #define ENCODERS_PAD_A { B12 }
  32. #define ENCODERS_PAD_B { B13 }
  33. #define DIP_SWITCH_PINS { B14, A15, A0, B9 }
  34. #define MUSIC_MAP
  35. #undef AUDIO_VOICES
  36. #undef C6_AUDIO
  37. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  38. // #define DEBOUNCE 6
  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. /*
  44. * Force NKRO
  45. *
  46. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  47. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  48. * makefile for this to work.)
  49. *
  50. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  51. * until the next keyboard reset.
  52. *
  53. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  54. * fully operational during normal computer usage.
  55. *
  56. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  57. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  58. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  59. * power-up.
  60. *
  61. */
  62. //#define FORCE_NKRO
  63. /*
  64. * Feature disable options
  65. * These options are also useful to firmware size reduction.
  66. */
  67. /* disable debug print */
  68. //#define NO_DEBUG
  69. /* disable print */
  70. //#define NO_PRINT
  71. /* disable action features */
  72. //#define NO_ACTION_LAYER
  73. //#define NO_ACTION_TAPPING
  74. //#define NO_ACTION_ONESHOT
  75. //#define NO_ACTION_MACRO
  76. //#define NO_ACTION_FUNCTION
  77. /*
  78. * MIDI options
  79. */
  80. /* Prevent use of disabled MIDI features in the keymap */
  81. //#define MIDI_ENABLE_STRICT 1
  82. /* enable basic MIDI features:
  83. - MIDI notes can be sent when in Music mode is on
  84. */
  85. //#define MIDI_BASIC
  86. /* enable advanced MIDI features:
  87. - MIDI notes can be added to the keymap
  88. - Octave shift and transpose
  89. - Virtual sustain, portamento, and modulation wheel
  90. - etc.
  91. */
  92. //#define MIDI_ADVANCED
  93. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  94. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  95. #define WS2812_LED_N 2
  96. #define RGBLED_NUM WS2812_LED_N
  97. #define WS2812_TIM_N 2
  98. #define WS2812_TIM_CH 2
  99. #define PORT_WS2812 GPIOA
  100. #define PIN_WS2812 1
  101. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
  102. //#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
  103. //#define WS2812_EXTERNAL_PULLUP
  104. #endif