aboutsummaryrefslogtreecommitdiff
path: root/keyboards/cradio/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cradio/config.h')
-rw-r--r--keyboards/cradio/config.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/keyboards/cradio/config.h b/keyboards/cradio/config.h
new file mode 100644
index 000000000..37c329a24
--- /dev/null
+++ b/keyboards/cradio/config.h
@@ -0,0 +1,79 @@
1/* Copyright 2018-2021
2 * ENDO Katsuhiro <[email protected]>
3 * David Philip Barr <@davidphilipbarr>
4 * Pierre Chevalier <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include "config_common.h"
23
24/* USB Device descriptor parameter */
25#define VENDOR_ID 0xC88B
26#define PRODUCT_ID 0x3988
27#define DEVICE_VER 0x0001
28#define MANUFACTURER DPB
29#define PRODUCT Cradio
30
31/* key matrix size */
32#define MATRIX_ROWS 8
33#define MATRIX_COLS 5
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 * NO_DIODE = switches are directly connected to AVR pins
44 *
45*/
46#define DIRECT_PINS { \
47 { E6, F7, F6, F5, F4 }, \
48 { B1, B3, B2, B6, D3 }, \
49 { D1, D0, D4, C6, D7 }, \
50 { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
51}
52
53#define DIRECT_PINS_RIGHT { \
54 { F4, F5, F6, F7, E6 }, \
55 { D3, B6, B2, B3, B1 }, \
56 { D7, C6, D4, D0, D1 }, \
57 { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
58}
59
60#define UNUSED_PINS
61
62/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
63#define DEBOUNCE 5
64
65/* Serial settings */
66#define USE_SERIAL
67/* serial.c configuration for split keyboard */
68#define SOFT_SERIAL_PIN D2
69
70/* Split handedness */
71#define EE_HANDS
72
73/* Top left key on left half */
74#define BOOTMAGIC_LITE_ROW 0
75#define BOOTMAGIC_LITE_COLUMN 0
76/* Top right key on right half */
77#define BOOTMAGIC_LITE_ROW_RIGHT 4
78#define BOOTMAGIC_LITE_COLUMN_RIGHT 4
79