diff options
-rw-r--r-- | keyboards/converter/adb_usb/adb.c (renamed from tmk_core/protocol/adb.c) | 4 | ||||
-rw-r--r-- | keyboards/converter/adb_usb/adb.h (renamed from tmk_core/protocol/adb.h) | 0 | ||||
-rw-r--r-- | keyboards/converter/adb_usb/matrix.c | 8 | ||||
-rw-r--r-- | keyboards/converter/adb_usb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/converter/m0110_usb/m0110.c (renamed from tmk_core/protocol/m0110.c) | 0 | ||||
-rw-r--r-- | keyboards/converter/m0110_usb/m0110.h (renamed from tmk_core/protocol/m0110.h) | 0 | ||||
-rw-r--r-- | keyboards/converter/xt_usb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/converter/xt_usb/xt.h (renamed from tmk_core/protocol/xt.h) | 0 | ||||
-rw-r--r-- | keyboards/converter/xt_usb/xt_interrupt.c (renamed from tmk_core/protocol/xt_interrupt.c) | 0 | ||||
-rw-r--r-- | quantum/keyboard.c | 10 | ||||
-rw-r--r-- | show_options.mk | 1 | ||||
-rw-r--r-- | tmk_core/protocol.mk | 9 | ||||
-rw-r--r-- | tmk_core/readme.md | 11 |
13 files changed, 15 insertions, 34 deletions
diff --git a/tmk_core/protocol/adb.c b/keyboards/converter/adb_usb/adb.c index 367f1b09f..28f14c9fe 100644 --- a/tmk_core/protocol/adb.c +++ b/keyboards/converter/adb_usb/adb.c | |||
@@ -84,10 +84,6 @@ bool adb_host_psw(void) { return psw_in(); } | |||
84 | uint16_t adb_host_kbd_recv(void) { return adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_0); } | 84 | uint16_t adb_host_kbd_recv(void) { return adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_0); } |
85 | 85 | ||
86 | #ifdef ADB_MOUSE_ENABLE | 86 | #ifdef ADB_MOUSE_ENABLE |
87 | __attribute__((weak)) void adb_mouse_init(void) { return; } | ||
88 | |||
89 | __attribute__((weak)) void adb_mouse_task(void) { return; } | ||
90 | |||
91 | uint16_t adb_host_mouse_recv(void) { return adb_host_talk(ADB_ADDR_MOUSE, ADB_REG_0); } | 87 | uint16_t adb_host_mouse_recv(void) { return adb_host_talk(ADB_ADDR_MOUSE, ADB_REG_0); } |
92 | #endif | 88 | #endif |
93 | 89 | ||
diff --git a/tmk_core/protocol/adb.h b/keyboards/converter/adb_usb/adb.h index fe8becc2d..fe8becc2d 100644 --- a/tmk_core/protocol/adb.h +++ b/keyboards/converter/adb_usb/adb.h | |||
diff --git a/keyboards/converter/adb_usb/matrix.c b/keyboards/converter/adb_usb/matrix.c index 9e5399de5..e6a492196 100644 --- a/keyboards/converter/adb_usb/matrix.c +++ b/keyboards/converter/adb_usb/matrix.c | |||
@@ -31,6 +31,10 @@ Ported to QMK by Peter Roe <pete@13bit.me> | |||
31 | #include "led.h" | 31 | #include "led.h" |
32 | #include "timer.h" | 32 | #include "timer.h" |
33 | 33 | ||
34 | #ifndef ADB_MOUSE_MAXACC | ||
35 | # define ADB_MOUSE_MAXACC 8 | ||
36 | #endif | ||
37 | |||
34 | static bool is_iso_layout = false; | 38 | static bool is_iso_layout = false; |
35 | 39 | ||
36 | // matrix state buffer(1:on, 0:off) | 40 | // matrix state buffer(1:on, 0:off) |
@@ -84,6 +88,10 @@ void matrix_init(void) | |||
84 | 88 | ||
85 | static report_mouse_t mouse_report = {}; | 89 | static report_mouse_t mouse_report = {}; |
86 | 90 | ||
91 | void housekeeping_task_kb(void) { | ||
92 | adb_mouse_task(); | ||
93 | } | ||
94 | |||
87 | void adb_mouse_task(void) | 95 | void adb_mouse_task(void) |
88 | { | 96 | { |
89 | uint16_t codes; | 97 | uint16_t codes; |
diff --git a/keyboards/converter/adb_usb/rules.mk b/keyboards/converter/adb_usb/rules.mk index 7c861e270..8f4649f55 100644 --- a/keyboards/converter/adb_usb/rules.mk +++ b/keyboards/converter/adb_usb/rules.mk | |||
@@ -19,3 +19,6 @@ BACKLIGHT_ENABLE = no | |||
19 | CUSTOM_MATRIX = yes | 19 | CUSTOM_MATRIX = yes |
20 | 20 | ||
21 | SRC = matrix.c adb.c led.c | 21 | SRC = matrix.c adb.c led.c |
22 | |||
23 | # ADB_MOUSE_ENABLE | ||
24 | # OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE | ||
diff --git a/tmk_core/protocol/m0110.c b/keyboards/converter/m0110_usb/m0110.c index 64f2fa50a..64f2fa50a 100644 --- a/tmk_core/protocol/m0110.c +++ b/keyboards/converter/m0110_usb/m0110.c | |||
diff --git a/tmk_core/protocol/m0110.h b/keyboards/converter/m0110_usb/m0110.h index 63ff3e90e..63ff3e90e 100644 --- a/tmk_core/protocol/m0110.h +++ b/keyboards/converter/m0110_usb/m0110.h | |||
diff --git a/keyboards/converter/xt_usb/rules.mk b/keyboards/converter/xt_usb/rules.mk index 519d76f4d..803361444 100644 --- a/keyboards/converter/xt_usb/rules.mk +++ b/keyboards/converter/xt_usb/rules.mk | |||
@@ -19,7 +19,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover | |||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
21 | AUDIO_ENABLE = no # Audio output | 21 | AUDIO_ENABLE = no # Audio output |
22 | XT_ENABLE = yes | ||
23 | CUSTOM_MATRIX = yes | 22 | CUSTOM_MATRIX = yes |
24 | 23 | ||
25 | SRC += matrix.c | 24 | SRC += matrix.c xt_interrupt.c |
diff --git a/tmk_core/protocol/xt.h b/keyboards/converter/xt_usb/xt.h index 538ff0e45..538ff0e45 100644 --- a/tmk_core/protocol/xt.h +++ b/keyboards/converter/xt_usb/xt.h | |||
diff --git a/tmk_core/protocol/xt_interrupt.c b/keyboards/converter/xt_usb/xt_interrupt.c index ba9d71848..ba9d71848 100644 --- a/tmk_core/protocol/xt_interrupt.c +++ b/keyboards/converter/xt_usb/xt_interrupt.c | |||
diff --git a/quantum/keyboard.c b/quantum/keyboard.c index ee7fa2bd4..401abdd8f 100644 --- a/quantum/keyboard.c +++ b/quantum/keyboard.c | |||
@@ -43,9 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | #ifdef SERIAL_MOUSE_ENABLE | 43 | #ifdef SERIAL_MOUSE_ENABLE |
44 | # include "serial_mouse.h" | 44 | # include "serial_mouse.h" |
45 | #endif | 45 | #endif |
46 | #ifdef ADB_MOUSE_ENABLE | ||
47 | # include "adb.h" | ||
48 | #endif | ||
49 | #ifdef RGBLIGHT_ENABLE | 46 | #ifdef RGBLIGHT_ENABLE |
50 | # include "rgblight.h" | 47 | # include "rgblight.h" |
51 | #endif | 48 | #endif |
@@ -322,9 +319,6 @@ void keyboard_init(void) { | |||
322 | #ifdef SERIAL_MOUSE_ENABLE | 319 | #ifdef SERIAL_MOUSE_ENABLE |
323 | serial_mouse_init(); | 320 | serial_mouse_init(); |
324 | #endif | 321 | #endif |
325 | #ifdef ADB_MOUSE_ENABLE | ||
326 | adb_mouse_init(); | ||
327 | #endif | ||
328 | #ifdef BACKLIGHT_ENABLE | 322 | #ifdef BACKLIGHT_ENABLE |
329 | backlight_init(); | 323 | backlight_init(); |
330 | #endif | 324 | #endif |
@@ -504,10 +498,6 @@ MATRIX_LOOP_END: | |||
504 | serial_mouse_task(); | 498 | serial_mouse_task(); |
505 | #endif | 499 | #endif |
506 | 500 | ||
507 | #ifdef ADB_MOUSE_ENABLE | ||
508 | adb_mouse_task(); | ||
509 | #endif | ||
510 | |||
511 | #ifdef POINTING_DEVICE_ENABLE | 501 | #ifdef POINTING_DEVICE_ENABLE |
512 | pointing_device_task(); | 502 | pointing_device_task(); |
513 | #endif | 503 | #endif |
diff --git a/show_options.mk b/show_options.mk index 083106963..e0d7c9b07 100644 --- a/show_options.mk +++ b/show_options.mk | |||
@@ -71,7 +71,6 @@ OTHER_OPTION_NAMES = \ | |||
71 | SWAP_HANDS_ENABLE \ | 71 | SWAP_HANDS_ENABLE \ |
72 | RING_BUFFERED_6KRO_REPORT_ENABLE \ | 72 | RING_BUFFERED_6KRO_REPORT_ENABLE \ |
73 | WATCHDOG_ENABLE \ | 73 | WATCHDOG_ENABLE \ |
74 | XT_ENABLE \ | ||
75 | ERGOINU \ | 74 | ERGOINU \ |
76 | NO_USB_STARTUP_CHECK \ | 75 | NO_USB_STARTUP_CHECK \ |
77 | DISABLE_PROMICRO_LEDs \ | 76 | DISABLE_PROMICRO_LEDs \ |
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk index b61f2f546..30c87a0f1 100644 --- a/tmk_core/protocol.mk +++ b/tmk_core/protocol.mk | |||
@@ -45,15 +45,6 @@ ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes) | |||
45 | SRC += $(PROTOCOL_DIR)/serial_uart.c | 45 | SRC += $(PROTOCOL_DIR)/serial_uart.c |
46 | endif | 46 | endif |
47 | 47 | ||
48 | ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes) | ||
49 | OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE | ||
50 | endif | ||
51 | |||
52 | ifeq ($(strip $(XT_ENABLE)), yes) | ||
53 | SRC += $(PROTOCOL_DIR)/xt_interrupt.c | ||
54 | OPT_DEFS += -DXT_ENABLE | ||
55 | endif | ||
56 | |||
57 | ifeq ($(strip $(USB_HID_ENABLE)), yes) | 48 | ifeq ($(strip $(USB_HID_ENABLE)), yes) |
58 | include $(TMK_DIR)/protocol/usb_hid.mk | 49 | include $(TMK_DIR)/protocol/usb_hid.mk |
59 | endif | 50 | endif |
diff --git a/tmk_core/readme.md b/tmk_core/readme.md index a754cfee4..a47dc8818 100644 --- a/tmk_core/readme.md +++ b/tmk_core/readme.md | |||
@@ -25,7 +25,6 @@ These features can be used in your keyboard. | |||
25 | * Media Control Key - Volume Down/Up, Mute, Next/Prev track, Play, Stop and etc | 25 | * Media Control Key - Volume Down/Up, Mute, Next/Prev track, Play, Stop and etc |
26 | * USB NKRO - 248 keys(+ 8 modifiers) simultaneously | 26 | * USB NKRO - 248 keys(+ 8 modifiers) simultaneously |
27 | * PS/2 mouse support - PS/2 mouse(TrackPoint) as composite device | 27 | * PS/2 mouse support - PS/2 mouse(TrackPoint) as composite device |
28 | * Keyboard protocols - PS/2, ADB, M0110, Sun and other old keyboard protocols | ||
29 | * User Function - Customizable function of key with writing code | 28 | * User Function - Customizable function of key with writing code |
30 | * Macro - Very primitive at this time | 29 | * Macro - Very primitive at this time |
31 | * Keyboard Tricks - Oneshot modifier and modifier with tapping feature | 30 | * Keyboard Tricks - Oneshot modifier and modifier with tapping feature |
@@ -84,9 +83,9 @@ Architecture | |||
84 | / /| Keys/Mouse | Protocol |d| | Action | | | Protocol | | 83 | / /| Keys/Mouse | Protocol |d| | Action | | | Protocol | |
85 | /__________/ |<-----------| LUFA |r| | Layer, Tap | | | Matrix | | 84 | /__________/ |<-----------| LUFA |r| | Layer, Tap | | | Matrix | |
86 | |.--------.| | LED | V-USB |i| |-------------| | | PS/2,IBM | __________________ | 85 | |.--------.| | LED | V-USB |i| |-------------| | | PS/2,IBM | __________________ |
87 | || || |----------->| UART |v| | Keymap | | | ADB,M0110| Keys / /_/_/_/_/_/_/_/ /| | 86 | || || |----------->| UART |v| | Keymap | | | | Keys / /_/_/_/_/_/_/_/ /| |
88 | || Host || | Console | |e| | Mousekey | | | SUN/NEWS |<----------/ /_/_/_/_/_/_/_/ / / | 87 | || Host || | Console | |e| | Mousekey | | | |<----------/ /_/_/_/_/_/_/_/ / / |
89 | ||________||/.<-----------| |r| | Report | | | X68K/PC98| Control / /_/_/_/_/_/_/_/ / / | 88 | ||________||/.<-----------| |r| | Report | | | | Control / /_/_/_/_/_/_/_/ / / |
90 | `_========_'/| |---------------------------------------------|-------->/___ /_______/ ___/ / | 89 | `_========_'/| |---------------------------------------------|-------->/___ /_______/ ___/ / |
91 | |_o______o_|/ | Sendchar, Print, Debug, Command, ... | |_________________|/ | 90 | |_o______o_|/ | Sendchar, Print, Debug, Command, ... | |_________________|/ |
92 | +---------------------------------------------+ Keyboard | 91 | +---------------------------------------------+ Keyboard |
@@ -134,10 +133,6 @@ Files and Directories | |||
134 | * lufa/ - LUFA USB stack | 133 | * lufa/ - LUFA USB stack |
135 | * vusb/ - Objective Development V-USB | 134 | * vusb/ - Objective Development V-USB |
136 | * ps2.c - PS/2 protocol | 135 | * ps2.c - PS/2 protocol |
137 | * adb.c - Apple Desktop Bus protocol | ||
138 | * m0110.c - Macintosh 128K/512K/Plus keyboard protocol | ||
139 | * news.c - Sony NEWS keyboard protocol | ||
140 | * x68k.c - Sharp X68000 keyboard protocol | ||
141 | * serial_soft.c - Asynchronous Serial protocol implemented by software | 136 | * serial_soft.c - Asynchronous Serial protocol implemented by software |
142 | 137 | ||
143 | 138 | ||