]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/planck/keymaps/thermal_printer/config.h
Update existing keymaps
[qmk_firmware.git] / keyboards / planck / keymaps / thermal_printer / config.h
1 #ifndef CONFIG_USER_H
2 #define CONFIG_USER_H
3
4 #include "../../config.h"
5
6 #      define SERIAL_UART_BAUD 19200
7 #      define SERIAL_UART_DATA UDR1
8 #      define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
9 #      define SERIAL_UART_RXD_VECT USART1_RX_vect
10 #      define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
11 #      define SERIAL_UART_INIT() do { \
12             /* baud rate */ \
13             UBRR1L = SERIAL_UART_UBRR; \
14             /* baud rate */ \
15             UBRR1H = SERIAL_UART_UBRR >> 8; \
16             /* enable TX */ \
17             UCSR1B = _BV(TXEN1); \
18             /* 8-bit data */ \
19             UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
20             sei(); \
21         } while(0)
22
23 /*
24  * MIDI options
25  */
26
27 /* Prevent use of disabled MIDI features in the keymap */
28 //#define MIDI_ENABLE_STRICT 1
29
30 /* enable basic MIDI features:
31    - MIDI notes can be sent when in Music mode is on
32 */
33 #define MIDI_BASIC
34
35 /* enable advanced MIDI features:
36    - MIDI notes can be added to the keymap
37    - Octave shift and transpose
38    - Virtual sustain, portamento, and modulation wheel
39    - etc.
40 */
41 //#define MIDI_ADVANCED
42
43 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
44 //#define MIDI_TONE_KEYCODE_OCTAVES 2
45
46  #endif