X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fm0110_usb%2Fconfig.h;h=801bc4ebfa9779c09d72b917e2bbc73086edab7b;hb=382eaebd3db595d8c4943f293d765e6b66a7e695;hp=ac1c40a38e08c70bc5258371a4512411c1f2e622;hpb=540d0700dc0a8172e32d419a9b99c30e2e82a98a;p=max%2Ftmk_keyboard.git
diff --git a/converter/m0110_usb/config.h b/converter/m0110_usb/config.h
index ac1c40a3..801bc4eb 100644
--- a/converter/m0110_usb/config.h
+++ b/converter/m0110_usb/config.h
@@ -21,7 +21,7 @@ along with this program. If not, see .
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x0110
-#define DEVICE_VER 0x0100
+#define DEVICE_VER 0x0101
#define MANUFACTURER t.m.k.
#define PRODUCT M0110 keyboard converter
#define DESCRIPTION convert M0110 keyboard to USB
@@ -32,14 +32,10 @@ along with this program. If not, see .
#define MATRIX_COLS 8
-/* legacy keymap support */
-#define USE_LEGACY_KEYMAP
-
-
-/* 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
+/* 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 */
@@ -48,15 +44,19 @@ along with this program. If not, see .
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LCTL)) \
)
+/* boot magic key */
+#define BOOTMAGIC_KEY_SALT KC_FN0
+#define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_LCAP
+
/* ports */
-#define M0110_CLOCK_PORT PORTF
-#define M0110_CLOCK_PIN PINF
-#define M0110_CLOCK_DDR DDRF
-#define M0110_CLOCK_BIT 0
-#define M0110_DATA_PORT PORTF
-#define M0110_DATA_PIN PINF
-#define M0110_DATA_DDR DDRF
-#define M0110_DATA_BIT 1
+#define M0110_CLOCK_PORT PORTD
+#define M0110_CLOCK_PIN PIND
+#define M0110_CLOCK_DDR DDRD
+#define M0110_CLOCK_BIT 1
+#define M0110_DATA_PORT PORTD
+#define M0110_DATA_PIN PIND
+#define M0110_DATA_DDR DDRD
+#define M0110_DATA_BIT 0
#endif