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.

136 lines
4.0 KiB

5 years ago
  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 REV6_CONFIG_H
  18. #define REV6_CONFIG_H
  19. /* USB Device descriptor parameter */
  20. #define DEVICE_VER 0x0006
  21. #undef MATRIX_ROWS
  22. #undef MATRIX_COLS
  23. /* key matrix size */
  24. #define MATRIX_ROWS 8
  25. #define MATRIX_COLS 6
  26. /*
  27. * Keyboard Matrix Assignments
  28. *
  29. * Change this to how you wired your keyboard
  30. * COLS: AVR pins used for columns, left to right
  31. * ROWS: AVR pins used for rows, top to bottom
  32. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  33. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  34. *
  35. */
  36. /* Note: These are not used for arm boards. They're here purely as documentation.
  37. * #define MATRIX_ROW_PINS { PB0, PB1, PB2, PA15, PA10 }
  38. * #define MATRIX_COL_PINS { PA2, PA3, PA6, PB14, PB15, PA8, PA9, PA7, PB3, PB4, PC14, PC15, PC13, PB5, PB6 }
  39. * #define UNUSED_PINS
  40. */
  41. #define NUMBER_OF_ENCODERS 1
  42. #define ENCODERS_PAD_A { B12 }
  43. #define ENCODERS_PAD_B { B13 }
  44. #define MUSIC_MAP
  45. #undef AUDIO_VOICES
  46. #undef C6_AUDIO
  47. #define A5_AUDIO
  48. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  49. #define DEBOUNCE 6
  50. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  51. //#define LOCKING_SUPPORT_ENABLE
  52. /* Locking resynchronize hack */
  53. //#define LOCKING_RESYNC_ENABLE
  54. /*
  55. * Force NKRO
  56. *
  57. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  58. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  59. * makefile for this to work.)
  60. *
  61. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  62. * until the next keyboard reset.
  63. *
  64. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  65. * fully operational during normal computer usage.
  66. *
  67. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  68. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  69. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  70. * power-up.
  71. *
  72. */
  73. //#define FORCE_NKRO
  74. /*
  75. * Feature disable options
  76. * These options are also useful to firmware size reduction.
  77. */
  78. /* disable debug print */
  79. //#define NO_DEBUG
  80. /* disable print */
  81. //#define NO_PRINT
  82. /* disable action features */
  83. //#define NO_ACTION_LAYER
  84. //#define NO_ACTION_TAPPING
  85. //#define NO_ACTION_ONESHOT
  86. //#define NO_ACTION_MACRO
  87. //#define NO_ACTION_FUNCTION
  88. /*
  89. * MIDI options
  90. */
  91. /* Prevent use of disabled MIDI features in the keymap */
  92. //#define MIDI_ENABLE_STRICT 1
  93. /* enable basic MIDI features:
  94. - MIDI notes can be sent when in Music mode is on
  95. */
  96. //#define MIDI_BASIC
  97. /* enable advanced MIDI features:
  98. - MIDI notes can be added to the keymap
  99. - Octave shift and transpose
  100. - Virtual sustain, portamento, and modulation wheel
  101. - etc.
  102. */
  103. //#define MIDI_ADVANCED
  104. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  105. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  106. #define WS2812_LED_N 2
  107. #define RGBLED_NUM WS2812_LED_N
  108. #define WS2812_TIM_N 2
  109. #define WS2812_TIM_CH 2
  110. #define PORT_WS2812 GPIOA
  111. #define PIN_WS2812 1
  112. #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
  113. //#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
  114. //#define WS2812_EXTERNAL_PULLUP
  115. #endif