X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fadb_usb%2Fconfig.h;h=3500188d3581990b0b4b2a3252596fa05ef5504f;hb=12e5a3a13eb86852ad58c131e28ba29c5f09bb2d;hp=da87eed6a7df8a021056293e228f53508c03a6ac;hpb=c4ab832be0f110a127b20e8df2b5223bceb8dcd1;p=max%2Ftmk_keyboard.git diff --git a/converter/adb_usb/config.h b/converter/adb_usb/config.h index da87eed6..3500188d 100644 --- a/converter/adb_usb/config.h +++ b/converter/adb_usb/config.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 0x0ADB @@ -36,36 +34,26 @@ along with this program. If not, see . #define MATRIX_COL(code) ((code)&0x07) -/* Locking Caps Lock support */ -//#define MATRIX_HAS_LOCKING_CAPS -/* Mechanical locking CapsLock support. Use KC_LCAP instead of KC_CAPS in keymap */ -#define CAPSLOCK_LOCKING_ENABLE -/* Locking CapsLock resynchronize hack */ -#define CAPSLOCK_LOCKING_RESYNC_ENABLE - - -/* legacy keymap support */ -#define USE_LEGACY_KEYMAP - - -/* mouse keys */ -#ifdef MOUSEKEY_ENABLE -# define MOUSEKEY_DELAY_TIME 192 -#endif +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE /* ADB port setting */ -#define ADB_PORT PORTF -#define ADB_PIN PINF -#define ADB_DDR DDRF +#define ADB_PORT PORTD +#define ADB_PIN PIND +#define ADB_DDR DDRD #define ADB_DATA_BIT 0 //#define ADB_PSW_BIT 1 // optional /* key combination for command */ +#ifndef __ASSEMBLER__ #include "adb.h" #include "matrix.h" #define IS_COMMAND() ( \ matrix_is_on(MATRIX_ROW(ADB_POWER), MATRIX_COL(ADB_POWER)) \ ) +#endif #endif