4 #include "../../config.h"
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 { \
13 UBRR1L = SERIAL_UART_UBRR; \
15 UBRR1H = SERIAL_UART_UBRR >> 8; \
17 UCSR1B = _BV(TXEN1); \
19 UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
27 /* Prevent use of disabled MIDI features in the keymap */
28 //#define MIDI_ENABLE_STRICT 1
30 /* enable basic MIDI features:
31 - MIDI notes can be sent when in Music mode is on
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
41 //#define MIDI_ADVANCED
43 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
44 //#define MIDI_TONE_KEYCODE_OCTAVES 2