diff options
Diffstat (limited to 'keyboards/sirius/uni660/rev1/config.h')
| -rw-r--r-- | keyboards/sirius/uni660/rev1/config.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/keyboards/sirius/uni660/rev1/config.h b/keyboards/sirius/uni660/rev1/config.h new file mode 100644 index 000000000..06f1c7810 --- /dev/null +++ b/keyboards/sirius/uni660/rev1/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 0x0201 // Second Product First Version | ||
| 26 | #define DEVICE_VER 0x1912 // 2019.12 | ||
| 27 | #define MANUFACTURER SiRius | ||
| 28 | #define PRODUCT SiRius Uni660 | ||
| 29 | #define DESCRIPTION SiRius Uni660 | ||
| 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 | ||
