aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mitosis/keymaps/mjt/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mitosis/keymaps/mjt/config.h')
-rw-r--r--keyboards/mitosis/keymaps/mjt/config.h78
1 files changed, 14 insertions, 64 deletions
diff --git a/keyboards/mitosis/keymaps/mjt/config.h b/keyboards/mitosis/keymaps/mjt/config.h
index 2209a9e0d..71adc5a2d 100644
--- a/keyboards/mitosis/keymaps/mjt/config.h
+++ b/keyboards/mitosis/keymaps/mjt/config.h
@@ -1,74 +1,24 @@
1#ifndef CONFIG_H
2#define CONFIG_H
3 1
4#include "config_common.h" 2#ifndef CONFIG_USER_H
3#define CONFIG_USER_H
5 4
6/* USB Device descriptor parameter */ 5#include "../../config.h"
7 6
8#define VENDOR_ID 0xFEEB 7#ifdef AUDIO_ENABLE
9#define PRODUCT_ID 0x6060 8 #define STARTUP_SONG SONG(PLANCK_SOUND)
10#define DEVICE_VER 0x0001 9 // #define STARTUP_SONG SONG(NO_SOUND)
11#define MANUFACTURER MJT
12#define PRODUCT Mitosis
13#define DESCRIPTION q.m.k. keyboard firmware for Mitosis
14 10
15/* key matrix size */ 11 #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
16#define MATRIX_ROWS 5 12 SONG(COLEMAK_SOUND), \
17#define MATRIX_COLS 10 13 SONG(DVORAK_SOUND) \
14 }
15#endif
16
17#define AUDIO_VOICES
18#define C6_AUDIO
18 19
19// fix iPhone power adapter issue 20// fix iPhone power adapter issue
20#define USB_MAX_POWER_CONSUMPTION 50 21#define USB_MAX_POWER_CONSUMPTION 50
21// #define CATERINA_BOOTLOADER
22
23/* define if matrix has ghost */
24//#define MATRIX_HAS_GHOST
25
26/* number of backlight levels */
27//#define BACKLIGHT_LEVELS 3
28
29#define ONESHOT_TIMEOUT 500
30
31
32/* key combination for command */
33#define IS_COMMAND() ( \
34 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
35)
36
37/*
38 * Feature disable options
39 * These options are also useful to firmware size reduction.
40 */
41
42#define PREVENT_STUCK_MODIFIERS
43
44/* disable debug print */
45//#define NO_DEBUG
46
47/* disable print */
48//#define NO_PRINT
49
50/* disable action features */
51//#define NO_ACTION_LAYER
52//#define NO_ACTION_TAPPING
53//#define NO_ACTION_ONESHOT
54//#define NO_ACTION_MACRO
55//#define NO_ACTION_FUNCTION
56 22
57//UART settings for communication with the RF microcontroller
58#define SERIAL_UART_BAUD 1000000
59#define SERIAL_UART_DATA UDR1
60#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
61#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
62#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
63#define SERIAL_UART_INIT() do { \
64 /* baud rate */ \
65 UBRR1L = SERIAL_UART_UBRR; \
66 /* baud rate */ \
67 UBRR1H = SERIAL_UART_UBRR >> 8; \
68 /* enable TX and RX */ \
69 UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
70 /* 8-bit data */ \
71 UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
72 } while(0)
73 23
74#endif 24#endif