aboutsummaryrefslogtreecommitdiff
path: root/keyboards/redox_w/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/redox_w/config.h')
-rw-r--r--keyboards/redox_w/config.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/keyboards/redox_w/config.h b/keyboards/redox_w/config.h
index 1f40a694d..b480b072f 100644
--- a/keyboards/redox_w/config.h
+++ b/keyboards/redox_w/config.h
@@ -58,17 +58,9 @@
58 58
59//UART settings for communication with the RF microcontroller 59//UART settings for communication with the RF microcontroller
60#define SERIAL_UART_BAUD 1000000 60#define SERIAL_UART_BAUD 1000000
61#define SERIAL_UART_DATA UDR1
62#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
63#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
64#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1)) 61#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
65#define SERIAL_UART_INIT() do { \ 62#define SERIAL_UART_INIT_CUSTOM \
66 /* baud rate */ \ 63 /* enable TX and RX */ \
67 UBRR1L = SERIAL_UART_UBRR; \ 64 UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
68 /* baud rate */ \ 65 /* 8-bit data */ \
69 UBRR1H = SERIAL_UART_UBRR >> 8; \ 66 UCSR1C = _BV(UCSZ11) | _BV(UCSZ10);
70 /* enable TX and RX */ \
71 UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
72 /* 8-bit data */ \
73 UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
74 } while(0)