X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fnews_usb%2Fconfig_pjrc.h;h=3cad3a1fcb4c13c4209cc6ce295e46fb1b6bad62;hb=45e45691e0c03f1b5ea4341c6d90f9a09016a37d;hp=e9cf7dedb689f9796a2a1f47b82177d07ed0ff86;hpb=81706d1130fdc3c0d6d110f4d8665c47ffd7fb59;p=max%2Ftmk_keyboard.git diff --git a/converter/news_usb/config_pjrc.h b/converter/news_usb/config_pjrc.h index e9cf7ded..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,23 +31,21 @@ 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(KB_LSHIFT) | MOD_BIT(KB_RSHIFT)) || \ - keyboard_report->mods == (MOD_BIT(KB_LCTRL) | MOD_BIT(KB_RSHIFT)) \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) || \ + keyboard_report->mods == (MOD_BIT(KC_LCTRL) | MOD_BIT(KC_RSHIFT)) \ ) -/* 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