aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-02-06 09:20:48 +1100
committerGitHub <noreply@github.com>2021-02-06 09:20:48 +1100
commit5ea92a9c1cbe3e20bf4830d550d797a8e9650da8 (patch)
tree75ea1413ae4fa23bd0b1230629b6a3b3e215c5eb /keyboards/planck
parent464eb7137d27e3a31e85032c85c9fda627a8b33f (diff)
downloadqmk_firmware-5ea92a9c1cbe3e20bf4830d550d797a8e9650da8.tar.gz
qmk_firmware-5ea92a9c1cbe3e20bf4830d550d797a8e9650da8.zip
Serial refactor (#11521)
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/keymaps/thermal_printer/config.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/keyboards/planck/keymaps/thermal_printer/config.h b/keyboards/planck/keymaps/thermal_printer/config.h
index 4460cdbbe..4ae9ced25 100644
--- a/keyboards/planck/keymaps/thermal_printer/config.h
+++ b/keyboards/planck/keymaps/thermal_printer/config.h
@@ -3,22 +3,7 @@
3 3
4#include "../../config.h" 4#include "../../config.h"
5 5
6# define SERIAL_UART_BAUD 19200 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 7
23/* 8/*
24 * MIDI options 9 * MIDI options