~ruther/qmk_firmware

e0d688d4c8040302fcacb735350c95fe6be4dbde — Joel Challis 3 years ago c39170b
Move converter specific tmk_core protocols (#14743)

R tmk_core/protocol/adb.c => keyboards/converter/adb_usb/adb.c +0 -4
@@ 84,10 84,6 @@ bool adb_host_psw(void) { return psw_in(); }
uint16_t adb_host_kbd_recv(void) { return adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_0); }

#ifdef ADB_MOUSE_ENABLE
__attribute__((weak)) void adb_mouse_init(void) { return; }

__attribute__((weak)) void adb_mouse_task(void) { return; }

uint16_t adb_host_mouse_recv(void) { return adb_host_talk(ADB_ADDR_MOUSE, ADB_REG_0); }
#endif


R tmk_core/protocol/adb.h => keyboards/converter/adb_usb/adb.h +0 -0
M keyboards/converter/adb_usb/matrix.c => keyboards/converter/adb_usb/matrix.c +8 -0
@@ 31,6 31,10 @@ Ported to QMK by Peter Roe <pete@13bit.me>
#include "led.h"
#include "timer.h"

#ifndef ADB_MOUSE_MAXACC
#    define ADB_MOUSE_MAXACC 8
#endif

static bool is_iso_layout = false;

// matrix state buffer(1:on, 0:off)


@@ 84,6 88,10 @@ void matrix_init(void)

static report_mouse_t mouse_report = {};

void housekeeping_task_kb(void) {
    adb_mouse_task();
}

void adb_mouse_task(void)
{
    uint16_t codes;

M keyboards/converter/adb_usb/rules.mk => keyboards/converter/adb_usb/rules.mk +3 -0
@@ 19,3 19,6 @@ BACKLIGHT_ENABLE = no
CUSTOM_MATRIX    = yes

SRC = matrix.c adb.c led.c

# ADB_MOUSE_ENABLE
# OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE

R tmk_core/protocol/m0110.c => keyboards/converter/m0110_usb/m0110.c +0 -0
R tmk_core/protocol/m0110.h => keyboards/converter/m0110_usb/m0110.h +0 -0
M keyboards/converter/xt_usb/rules.mk => keyboards/converter/xt_usb/rules.mk +1 -2
@@ 19,7 19,6 @@ NKRO_ENABLE = yes           # USB Nkey Rollover
BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
AUDIO_ENABLE = no           # Audio output
XT_ENABLE = yes
CUSTOM_MATRIX = yes

SRC += matrix.c
SRC += matrix.c xt_interrupt.c

R tmk_core/protocol/xt.h => keyboards/converter/xt_usb/xt.h +0 -0
R tmk_core/protocol/xt_interrupt.c => keyboards/converter/xt_usb/xt_interrupt.c +0 -0
M quantum/keyboard.c => quantum/keyboard.c +0 -10
@@ 43,9 43,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#ifdef SERIAL_MOUSE_ENABLE
#    include "serial_mouse.h"
#endif
#ifdef ADB_MOUSE_ENABLE
#    include "adb.h"
#endif
#ifdef RGBLIGHT_ENABLE
#    include "rgblight.h"
#endif


@@ 322,9 319,6 @@ void keyboard_init(void) {
#ifdef SERIAL_MOUSE_ENABLE
    serial_mouse_init();
#endif
#ifdef ADB_MOUSE_ENABLE
    adb_mouse_init();
#endif
#ifdef BACKLIGHT_ENABLE
    backlight_init();
#endif


@@ 504,10 498,6 @@ MATRIX_LOOP_END:
    serial_mouse_task();
#endif

#ifdef ADB_MOUSE_ENABLE
    adb_mouse_task();
#endif

#ifdef POINTING_DEVICE_ENABLE
    pointing_device_task();
#endif

M show_options.mk => show_options.mk +0 -1
@@ 71,7 71,6 @@ OTHER_OPTION_NAMES = \
  SWAP_HANDS_ENABLE \
  RING_BUFFERED_6KRO_REPORT_ENABLE \
  WATCHDOG_ENABLE \
  XT_ENABLE \
  ERGOINU \
  NO_USB_STARTUP_CHECK \
  DISABLE_PROMICRO_LEDs \

M tmk_core/protocol.mk => tmk_core/protocol.mk +0 -9
@@ 45,15 45,6 @@ ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes)
    SRC += $(PROTOCOL_DIR)/serial_uart.c
endif

ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes)
    OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
endif

ifeq ($(strip $(XT_ENABLE)), yes)
    SRC += $(PROTOCOL_DIR)/xt_interrupt.c
    OPT_DEFS += -DXT_ENABLE
endif

ifeq ($(strip $(USB_HID_ENABLE)), yes)
    include $(TMK_DIR)/protocol/usb_hid.mk
endif

M tmk_core/readme.md => tmk_core/readme.md +3 -8
@@ 25,7 25,6 @@ These features can be used in your keyboard.
* Media Control Key   - Volume Down/Up, Mute, Next/Prev track, Play, Stop and etc
* USB NKRO            - 248 keys(+ 8 modifiers) simultaneously
* PS/2 mouse support  - PS/2 mouse(TrackPoint) as composite device
* Keyboard protocols  - PS/2, ADB, M0110, Sun and other old keyboard protocols
* User Function       - Customizable function of key with writing code
* Macro               - Very primitive at this time
* Keyboard Tricks     - Oneshot modifier and modifier with tapping feature


@@ 84,9 83,9 @@ Architecture
      /          /| Keys/Mouse | Protocol  |d| | Action      | | | Protocol  |
     /__________/ |<-----------|  LUFA     |r| |  Layer, Tap | | |  Matrix   |
     |.--------.| |   LED      |  V-USB    |i| |-------------| | |  PS/2,IBM |             __________________
     ||        || |----------->|  UART     |v| | Keymap      | | |  ADB,M0110|  Keys      / /_/_/_/_/_/_/_/ /|
     ||  Host  || |  Console   |           |e| | Mousekey    | | |  SUN/NEWS |<----------/ /_/_/_/_/_/_/_/ / /
     ||________||/.<-----------|           |r| | Report      | | |  X68K/PC98| Control  / /_/_/_/_/_/_/_/ / /
     ||        || |----------->|  UART     |v| | Keymap      | | |           |  Keys      / /_/_/_/_/_/_/_/ /|
     ||  Host  || |  Console   |           |e| | Mousekey    | | |           |<----------/ /_/_/_/_/_/_/_/ / /
     ||________||/.<-----------|           |r| | Report      | | |           | Control  / /_/_/_/_/_/_/_/ / /
     `_========_'/|            |---------------------------------------------|-------->/___ /_______/ ___/ /
     |_o______o_|/             | Sendchar, Print, Debug, Command, ...        |         |_________________|/
                               +---------------------------------------------+              Keyboard


@@ 134,10 133,6 @@ Files and Directories
* lufa/     - LUFA USB stack
* vusb/     - Objective Development V-USB
* ps2.c     - PS/2 protocol
* adb.c     - Apple Desktop Bus protocol
* m0110.c   - Macintosh 128K/512K/Plus keyboard protocol
* news.c    - Sony NEWS keyboard protocol
* x68k.c    - Sharp X68000 keyboard protocol
* serial_soft.c - Asynchronous Serial protocol implemented by software