diff options
author | Daniel Klein <kledan@amazon.com> | 2020-04-21 16:53:49 -0700 |
---|---|---|
committer | Daniel Klein <kledan@amazon.com> | 2020-04-21 16:53:49 -0700 |
commit | d0d105b0832bf30d176256a9c28eec8dca2e80ba (patch) | |
tree | 097b06f32abc7c01b13342ede5accd026d755fc4 /keyboards/sirius | |
parent | c0a57c2a5035eeaeeabe1cb70b4f64d9a66597c3 (diff) | |
download | qmk_firmware-d0d105b0832bf30d176256a9c28eec8dca2e80ba.tar.gz qmk_firmware-d0d105b0832bf30d176256a9c28eec8dca2e80ba.zip |
split config.h
Diffstat (limited to 'keyboards/sirius')
-rw-r--r-- | keyboards/sirius/uni660/rev2/ansi/config.h (renamed from keyboards/sirius/uni660/rev2/config.h) | 0 | ||||
-rw-r--r-- | keyboards/sirius/uni660/rev2/iso/config.h | 78 |
2 files changed, 78 insertions, 0 deletions
diff --git a/keyboards/sirius/uni660/rev2/config.h b/keyboards/sirius/uni660/rev2/ansi/config.h index 0032f61cc..0032f61cc 100644 --- a/keyboards/sirius/uni660/rev2/config.h +++ b/keyboards/sirius/uni660/rev2/ansi/config.h | |||
diff --git a/keyboards/sirius/uni660/rev2/iso/config.h b/keyboards/sirius/uni660/rev2/iso/config.h new file mode 100644 index 000000000..e31f8fb8e --- /dev/null +++ b/keyboards/sirius/uni660/rev2/iso/config.h | |||
@@ -0,0 +1,78 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@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 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | |||
24 | #define VENDOR_ID 0x5352 // "SR" | ||
25 | #define PRODUCT_ID 0x0203 // Second Product Third Version | ||
26 | #define DEVICE_VER 0x2004 // 2020.12 | ||
27 | #define MANUFACTURER SiRius | ||
28 | #define PRODUCT SiRius Uni660 V2 | ||
29 | #define DESCRIPTION SiRius Uni660 V2 | ||
30 | |||
31 | /* key matrix size */ | ||
32 | #define MATRIX_ROWS 5 | ||
33 | #define MATRIX_COLS 16 | ||
34 | |||
35 | /* define if matrix has ghost */ | ||
36 | //#define MATRIX_HAS_GHOST | ||
37 | |||
38 | /* number of backlight levels */ | ||
39 | //#define BACKLIGHT_LEVELS 3 | ||
40 | |||
41 | #define ONESHOT_TIMEOUT 500 | ||
42 | |||
43 | /* | ||
44 | * Feature disable options | ||
45 | * These options are also useful to firmware size reduction. | ||
46 | */ | ||
47 | |||
48 | /* disable debug print */ | ||
49 | //#define NO_DEBUG | ||
50 | |||
51 | /* disable print */ | ||
52 | //#define NO_PRINT | ||
53 | |||
54 | /* disable action features */ | ||
55 | //#define NO_ACTION_LAYER | ||
56 | //#define NO_ACTION_TAPPING | ||
57 | //#define NO_ACTION_ONESHOT | ||
58 | //#define NO_ACTION_MACRO | ||
59 | //#define NO_ACTION_FUNCTION | ||
60 | |||
61 | //UART settings for communication with the RF microcontroller | ||
62 | #define SERIAL_UART_BAUD 1000000 | ||
63 | #define SERIAL_UART_DATA UDR1 | ||
64 | #define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1) | ||
65 | #define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1)) | ||
66 | #define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1)) | ||
67 | #define SERIAL_UART_INIT() do { \ | ||
68 | /* baud rate */ \ | ||
69 | UBRR1L = SERIAL_UART_UBRR; \ | ||
70 | /* baud rate */ \ | ||
71 | UBRR1H = SERIAL_UART_UBRR >> 8; \ | ||
72 | /* enable TX and RX */ \ | ||
73 | UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ | ||
74 | /* 8-bit data */ \ | ||
75 | UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \ | ||
76 | } while(0) | ||
77 | |||
78 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 | ||