X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fsun_usb%2Fconfig.h;h=414fd56399dc17706cd8f943c3716e405cdf71e3;hb=3e8289b53ce929484651fc065fb5f718e4e3ae21;hp=cfd39cd513a68fcb44789f5399b384764882538d;hpb=353a9b56e6caee853d3f808d2bfedf07056b4518;p=max%2Ftmk_keyboard.git
diff --git a/converter/sun_usb/config.h b/converter/sun_usb/config.h
index cfd39cd5..414fd563 100644
--- a/converter/sun_usb/config.h
+++ b/converter/sun_usb/config.h
@@ -39,51 +39,88 @@ along with this program. If not, see .
/* legacy keymap support */
#define USE_LEGACY_KEYMAP
-
-/* Serial(USART) configuration
- * asynchronous, negative logic, 1200baud, no flow control
- * 1-start bit, 8-data bit, non parity, 1-stop bit
+/* HARDWARE_SERAIL assumes that a logic inverter (7404) is placed
+ * in front of RX/TX to produce the positive logic the MCU expects.
+ * The default is Software Serial.
*/
-#define SERIAL_SOFT_BAUD 1200
-#define SERIAL_SOFT_PARITY_NONE
-#define SERIAL_SOFT_BIT_ORDER_LSB
-#define SERIAL_SOFT_LOGIC_NEGATIVE
-/* RXD Port */
-#define SERIAL_SOFT_RXD_ENABLE
-#define SERIAL_SOFT_RXD_DDR DDRD
-#define SERIAL_SOFT_RXD_PORT PORTD
-#define SERIAL_SOFT_RXD_PIN PIND
-#define SERIAL_SOFT_RXD_BIT 2
-#define SERIAL_SOFT_RXD_VECT INT2_vect
-/* RXD Interupt */
-#define SERIAL_SOFT_RXD_INIT() do { \
- /* pin configuration: input with pull-up */ \
- SERIAL_SOFT_RXD_DDR &= ~(1<>8); /* baud rate */ \
+ UCSR1B = (1<