diff options
Diffstat (limited to 'keyboards/comet46/config.h')
-rw-r--r-- | keyboards/comet46/config.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/keyboards/comet46/config.h b/keyboards/comet46/config.h new file mode 100644 index 000000000..067dabb10 --- /dev/null +++ b/keyboards/comet46/config.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <[email protected]> | ||
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 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | |||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x6060 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER SatT | ||
28 | #define PRODUCT Comet46 | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 10 | ||
33 | |||
34 | /* define if matrix has ghost */ | ||
35 | //#define MATRIX_HAS_GHOST | ||
36 | |||
37 | /* number of backlight levels */ | ||
38 | //#define BACKLIGHT_LEVELS 3 | ||
39 | |||
40 | #define ONESHOT_TIMEOUT 500 | ||
41 | |||
42 | /* | ||
43 | * Feature disable options | ||
44 | * These options are also useful to firmware size reduction. | ||
45 | */ | ||
46 | |||
47 | /* disable debug print */ | ||
48 | //#define NO_DEBUG | ||
49 | |||
50 | /* disable print */ | ||
51 | //#define NO_PRINT | ||
52 | |||
53 | /* disable action features */ | ||
54 | //#define NO_ACTION_LAYER | ||
55 | //#define NO_ACTION_TAPPING | ||
56 | //#define NO_ACTION_ONESHOT | ||
57 | //#define NO_ACTION_MACRO | ||
58 | //#define NO_ACTION_FUNCTION | ||
59 | |||
60 | // Define masks for modifiers | ||
61 | #define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)) | ||
62 | #define MODS_CTRL_MASK (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL)) | ||
63 | #define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT)) | ||
64 | #define MODS_GUI_MASK (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)) | ||
65 | |||
66 | //UART settings for communication with the RF microcontroller | ||
67 | #define SERIAL_UART_BAUD 1000000 | ||
68 | #define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1)) | ||
69 | #define SERIAL_UART_INIT_CUSTOM \ | ||
70 | /* enable TX and RX */ \ | ||
71 | UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ | ||
72 | /* 8-bit data */ \ | ||
73 | UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); | ||