diff options
author | Ryan <fauxpark@gmail.com> | 2021-01-14 11:17:47 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 11:17:47 +1100 |
commit | 72ca319beefcd479954d5fb08325c0187148b357 (patch) | |
tree | e6cec7cce0ed0abedd4665be85004368c7b782dd /keyboards/sirius/uni660/rev1/config.h | |
parent | b5c2e5e8fddcdbbed955f438796db505270025ee (diff) |
Uni660 refactor (#11526)
Diffstat (limited to 'keyboards/sirius/uni660/rev1/config.h')
-rw-r--r-- | keyboards/sirius/uni660/rev1/config.h | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/keyboards/sirius/uni660/rev1/config.h b/keyboards/sirius/uni660/rev1/config.h index 06f1c78100..98269d4261 100644 --- a/keyboards/sirius/uni660/rev1/config.h +++ b/keyboards/sirius/uni660/rev1/config.h @@ -20,26 +20,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "config_common.h" /* USB Device descriptor parameter */ - -#define VENDOR_ID 0x5352 // "SR" -#define PRODUCT_ID 0x0201 // Second Product First Version -#define DEVICE_VER 0x1912 // 2019.12 -#define MANUFACTURER SiRius -#define PRODUCT SiRius Uni660 -#define DESCRIPTION SiRius Uni660 +#define VENDOR_ID 0x5352 // "SR" +#define PRODUCT_ID 0x0201 // Second Product First Version +#define DEVICE_VER 0x1912 // 2019.12 +#define MANUFACTURER SiRius +#define PRODUCT Uni660 /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 16 -/* define if matrix has ghost */ -//#define MATRIX_HAS_GHOST - -/* number of backlight levels */ -//#define BACKLIGHT_LEVELS 3 - #define ONESHOT_TIMEOUT 500 +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +//#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +//#define LOCKING_RESYNC_ENABLE + /* * Feature disable options * These options are also useful to firmware size reduction. @@ -55,8 +52,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. //#define NO_ACTION_LAYER //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -//#define NO_ACTION_MACRO -//#define NO_ACTION_FUNCTION + +/* disable these deprecated features by default */ +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION //UART settings for communication with the RF microcontroller #define SERIAL_UART_BAUD 1000000 @@ -65,14 +64,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1)) #define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1)) #define SERIAL_UART_INIT() do { \ - /* baud rate */ \ - UBRR1L = SERIAL_UART_UBRR; \ - /* baud rate */ \ - UBRR1H = SERIAL_UART_UBRR >> 8; \ - /* enable TX and RX */ \ - UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ - /* 8-bit data */ \ - UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \ - } while(0) + /* baud rate */ \ + UBRR1L = SERIAL_UART_UBRR; \ + /* baud rate */ \ + UBRR1H = SERIAL_UART_UBRR >> 8; \ + /* enable TX and RX */ \ + UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ + /* 8-bit data */ \ + UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \ +} while (0) #define DYNAMIC_KEYMAP_LAYER_COUNT 4 |