X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fsun_usb%2Fconfig.h;h=414fd56399dc17706cd8f943c3716e405cdf71e3;hb=8b509aa11140d4249824600aa9143fe1fca42d85;hp=66961d9330896dc34cdefb74dab905c28950c6f0;hpb=b56717b843859aa3188f9a40532b077241269482;p=max%2Ftmk_keyboard.git
diff --git a/converter/sun_usb/config.h b/converter/sun_usb/config.h
index 66961d93..414fd563 100644
--- a/converter/sun_usb/config.h
+++ b/converter/sun_usb/config.h
@@ -25,12 +25,10 @@ along with this program. If not, see .
#define PRODUCT Sun keyboard converter
#define DESCRIPTION converts Sun keyboard protocol into USB
-
/* matrix size */
#define MATRIX_ROWS 16
#define MATRIX_COLS 8
-
/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) || \
@@ -38,30 +36,91 @@ along with this program. If not, see .
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)
+/* 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_NEGATIVE_LOGIC
-#define SERIAL_BAUD 1200
-#define SERIAL_RXD_DDR DDRD
-#define SERIAL_RXD_PORT PORTD
-#define SERIAL_RXD_PIN PIND
-#define SERIAL_RXD_BIT 2
-#define SERIAL_RXD_VECT INT2_vect
-#define SERIAL_RXD_INIT() do { \
- /* pin configuration: input with pull-up */ \
- SERIAL_RXD_DDR &= ~(1<>8); /* baud rate */ \
+ UCSR1B = (1<