X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fnews_usb%2Fconfig_pjrc.h;h=3cad3a1fcb4c13c4209cc6ce295e46fb1b6bad62;hb=8c91a997b3a79c52797269612aef43faf58f01cc;hp=5bb0216fe50513587738d3d27537052c2cae0c4d;hpb=3c822b511e7af60332a7e5a938c08bafb2516ba3;p=max%2Ftmk_keyboard.git
diff --git a/converter/news_usb/config_pjrc.h b/converter/news_usb/config_pjrc.h
index 5bb0216f..3cad3a1f 100644
--- a/converter/news_usb/config_pjrc.h
+++ b/converter/news_usb/config_pjrc.h
@@ -18,8 +18,6 @@ along with this program. If not, see .
#ifndef CONFIG_H
#define CONFIG_H
-/* controller configuration */
-#include "controller_teensy.h"
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x5021
@@ -33,6 +31,10 @@ along with this program. If not, see .
#define MATRIX_COLS 8 // keycode bit: 6-4
+/* legacy keymap support */
+#define USE_LEGACY_KEYMAP
+
+
/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) || \
@@ -40,16 +42,10 @@ along with this program. If not, see .
)
-/* mouse keys */
-#ifdef MOUSEKEY_ENABLE
-# define MOUSEKEY_DELAY_TIME 255
-#endif
-
-
/* Asynchronous USART
* 8-data bit, non parity, 1-stop bit, no flow control
*/
-#ifdef __AVR_ATmega32U4__
+#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__)
# define NEWS_KBD_RX_VECT USART1_RX_vect
# define NEWS_KBD_RX_DATA UDR1
# define NEWS_KBD_RX_BAUD 9600