diff options
Diffstat (limited to 'keyboards/clueboard/60/config.h')
| -rw-r--r-- | keyboards/clueboard/60/config.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/keyboards/clueboard/60/config.h b/keyboards/clueboard/60/config.h index a862d2cda..c7dbf8ad0 100644 --- a/keyboards/clueboard/60/config.h +++ b/keyboards/clueboard/60/config.h | |||
| @@ -15,8 +15,9 @@ | |||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #ifndef CONFIG_H | 18 | #pragma once |
| 19 | #define CONFIG_H | 19 | |
| 20 | #include "config_common.h" | ||
| 20 | 21 | ||
| 21 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
| 22 | #define VENDOR_ID 0xC1ED | 23 | #define VENDOR_ID 0xC1ED |
| @@ -26,6 +27,12 @@ | |||
| 26 | #define PRODUCT Clueboard 60% | 27 | #define PRODUCT Clueboard 60% |
| 27 | #define DESCRIPTION Clueboard 60% | 28 | #define DESCRIPTION Clueboard 60% |
| 28 | 29 | ||
| 30 | /* Address for jumping to bootloader on STM32 chips. */ | ||
| 31 | /* It is chip dependent, the correct number can be looked up here: | ||
| 32 | * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
| 33 | */ | ||
| 34 | #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800 | ||
| 35 | |||
| 29 | /* key matrix size */ | 36 | /* key matrix size */ |
| 30 | #define MATRIX_ROWS 5 | 37 | #define MATRIX_ROWS 5 |
| 31 | #define MATRIX_COLS 15 | 38 | #define MATRIX_COLS 15 |
| @@ -33,18 +40,16 @@ | |||
| 33 | /* | 40 | /* |
| 34 | * Keyboard Matrix Assignments | 41 | * Keyboard Matrix Assignments |
| 35 | * | 42 | * |
| 36 | * Change this to how you wired your keyboard | 43 | * COLS: Pins used for columns, left to right |
| 37 | * COLS: AVR pins used for columns, left to right | 44 | * ROWS: Pins used for rows, top to bottom |
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | 45 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) |
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | 46 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) |
| 41 | * | 47 | * |
| 42 | */ | 48 | */ |
| 43 | /* Note: These are not used for arm boards. They're here purely as documentation. | 49 | #define MATRIX_ROW_PINS { B0, B1, B2, A15, A10 } |
| 44 | * #define MATRIX_ROW_PINS { PB0, PB1, PB2, PA15, PA10 } | 50 | #define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C14, C15, C13, B5, B6 } |
| 45 | * #define MATRIX_COL_PINS { PA2, PA3, PA6, PB14, PB15, PA8, PA9, PA7, PB3, PB4, PC14, PC15, PC13, PB5, PB6 } | 51 | #define UNUSED_PINS { A0, A1, A9, B7, B8, B9, B10, B11, B12, B13 } |
| 46 | * #define UNUSED_PINS | 52 | #define DIODE_DIRECTION COL2ROW |
| 47 | */ | ||
| 48 | 53 | ||
| 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 50 | #define DEBOUNCE 6 | 55 | #define DEBOUNCE 6 |
| @@ -121,8 +126,6 @@ | |||
| 121 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 126 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 122 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 127 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 123 | 128 | ||
| 124 | #endif | ||
| 125 | |||
| 126 | /* Backlight configuration | 129 | /* Backlight configuration |
| 127 | */ | 130 | */ |
| 128 | #define BACKLIGHT_LEVELS 1 | 131 | #define BACKLIGHT_LEVELS 1 |
