X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fm0110_usb%2Fconfig.h;h=2f63a3a490e5183f3fd7eac10a6d725caa354484;hb=221af6bffbb8c5af57ae64068d34e5ea165b3a82;hp=d2e904077fe2da193d3deb6952aa6ba96b3dec93;hpb=ce2e06c39465b76a1780e5d594eaea7697afafd6;p=max%2Ftmk_keyboard.git
diff --git a/converter/m0110_usb/config.h b/converter/m0110_usb/config.h
index d2e90407..2f63a3a4 100644
--- a/converter/m0110_usb/config.h
+++ b/converter/m0110_usb/config.h
@@ -18,12 +18,10 @@ 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 0x0110
+#define DEVICE_VER 0x0101
#define MANUFACTURER t.m.k.
#define PRODUCT M0110 keyboard converter
#define DESCRIPTION convert M0110 keyboard to USB
@@ -33,29 +31,32 @@ along with this program. If not, see .
#define MATRIX_ROWS 14
#define MATRIX_COLS 8
-/* Locking Caps Lock support */
-//#define MATRIX_HAS_LOCKING_CAPS
-/* key combination for command */
-#define IS_COMMAND() ( \
- keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) \
-)
+/* 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
+
+
+/* magic key */
+#define IS_COMMAND() ( \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) || \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LCTL)) \
+)
/* ports */
-#define M0110_CLOCK_PORT PORTF
-#define M0110_CLOCK_PIN PINF
-#define M0110_CLOCK_DDR DDRF
+#define M0110_CLOCK_PORT PORTD
+#define M0110_CLOCK_PIN PIND
+#define M0110_CLOCK_DDR DDRD
#define M0110_CLOCK_BIT 0
-#define M0110_DATA_PORT PORTF
-#define M0110_DATA_PIN PINF
-#define M0110_DATA_DDR DDRF
+#define M0110_DATA_PORT PORTD
+#define M0110_DATA_PIN PIND
+#define M0110_DATA_DDR DDRD
#define M0110_DATA_BIT 1
#endif