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.

115 lines
3.5 KiB

  1. /* Copyright 2018 Jack Humbert
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x6060
  21. #define DEVICE_VER 0x0006
  22. #define MANUFACTURER The Key Company
  23. #define PRODUCT Candybar
  24. #define DESCRIPTION A compact staggered 40% keyboard with attached numpad
  25. /* key matrix size */
  26. #define MATRIX_ROWS 4
  27. #define MATRIX_COLS 17
  28. #define DIODE_DIRECTION COL2ROW
  29. #define MATRIX_ROW_PINS { A8, A9, A10, A13 }
  30. #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, B2, B10, B11, B12, B13, B14, B15 }
  31. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  32. #define DEBOUNCE 5
  33. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  34. //#define LOCKING_SUPPORT_ENABLE
  35. /* Locking resynchronize hack */
  36. //#define LOCKING_RESYNC_ENABLE
  37. /*
  38. * Force NKRO
  39. *
  40. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  41. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  42. * makefile for this to work.)
  43. *
  44. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  45. * until the next keyboard reset.
  46. *
  47. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  48. * fully operational during normal computer usage.
  49. *
  50. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  51. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  52. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  53. * power-up.
  54. *
  55. */
  56. //#define FORCE_NKRO
  57. /*
  58. * Feature disable options
  59. * These options are also useful to firmware size reduction.
  60. */
  61. /* disable debug print */
  62. //#define NO_DEBUG
  63. /* disable print */
  64. //#define NO_PRINT
  65. /* disable action features */
  66. //#define NO_ACTION_LAYER
  67. //#define NO_ACTION_TAPPING
  68. //#define NO_ACTION_ONESHOT
  69. //#define NO_ACTION_MACRO
  70. //#define NO_ACTION_FUNCTION
  71. /*
  72. * MIDI options
  73. */
  74. /* Prevent use of disabled MIDI features in the keymap */
  75. //#define MIDI_ENABLE_STRICT 1
  76. /* enable basic MIDI features:
  77. - MIDI notes can be sent when in Music mode is on
  78. */
  79. //#define MIDI_BASIC
  80. /* enable advanced MIDI features:
  81. - MIDI notes can be added to the keymap
  82. - Octave shift and transpose
  83. - Virtual sustain, portamento, and modulation wheel
  84. - etc.
  85. */
  86. //#define MIDI_ADVANCED
  87. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  88. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  89. // #define WS2812_LED_N 2
  90. // #define RGBLED_NUM WS2812_LED_N
  91. // #define WS2812_TIM_N 2
  92. // #define WS2812_TIM_CH 2
  93. // #define PORT_WS2812 GPIOA
  94. // #define PIN_WS2812 1
  95. // #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
  96. //#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
  97. //#define WS2812_EXTERNAL_PULLUP