]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/co60/rev6/config.h
Add missing links to features page and sidebar section (#5949)
[qmk_firmware.git] / keyboards / handwired / co60 / rev6 / config.h
1 /*
2  * Copyright 2019 John M Daly <jmdaly@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 #pragma once
18
19 #include "config_common.h"
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0xFEED
23 #define PRODUCT_ID      0x0000
24 #define DEVICE_VER      0x0001
25 #define MANUFACTURER    John M Daly
26 #define PRODUCT         CO60 rev6
27 #define DESCRIPTION     An open hardware sixty percent PCB
28
29 /* Address for jumping to bootloader on STM32 chips. */
30 /* It is chip dependent, the correct number can be looked up here:
31  * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
32  */
33 #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800
34
35 /* key matrix size */
36 #define MATRIX_ROWS 5
37 #define MATRIX_COLS 15
38
39 /* ROWS: Top to bottom, COLS: Left to right
40 */
41 #define MATRIX_ROW_PINS { B0, B1, B2, A15, A10 }
42 #define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C14, C15, C13, B5, B6 }
43
44 /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
45 #define DIODE_DIRECTION COL2ROW
46
47 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
48 #define DEBOUNCE 5
49
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 /* Backlight configuration
56  * Backlight LEDs on B8
57  */
58 #define BACKLIGHT_LEVELS 24
59 #define BACKLIGHT_BREATHING
60 #define BREATHING_PERIOD 6