Commit graph

404 commits

Author SHA1 Message Date
tmk
50347c692b core: mouse debug print 2023-10-31 12:45:24 +09:00
tmk
294403ffbf core: Make console buffer smaller for atmega32u2
memory shortage can happen when enabling all features
2023-10-31 12:45:24 +09:00
tmk
909b37d641 archimedes: Fix serial timing 2023-10-31 12:45:24 +09:00
tmk
d5f61007bc core: Add print-* target to rules.mk 2023-07-17 12:04:03 +09:00
tmk
61fc65141c usb_hid: Update UHS2 2023-07-17 11:28:10 +09:00
tmk
002537b8ea core: Add mousekey support to ACTION_KEY() #675
ACT_MOUSEKEY can be removed but kept for backward compatibility.
Mousekeys work with ACTION_KEY(), ACTION_MODS_KEY(), ACTION_MODS_TAP_KEY() now.
But not completely with ACTION_LAYER_TAP_KEY(),
layer_param_bit_op { OP_TAP_TOGGLE, OP_ON_OFF, OP_OFF_ON, OP_SET_CLEAR }
overlaps with mousekeys KC_MS_* paritally(F0-F3).
2023-07-08 12:57:35 +09:00
tmk
d9c100ecf7 lufa: Fix keyboard protocol on bus reset #763
Keyboard can be set as Boot protocol by BIOS/UEFI/GRUB
then bus reset occurs before OS boots up.
OS(at least Windows10,11/Ubuntu23.04) expects device works
on Report protocol. Note that OS does not send SetProtocol(Report) here.

Device state should be initialized properly on bus reset.

https://github.com/tmk/tmk_keyboard/issues/763
2023-07-05 22:32:07 +09:00
tmk
db4268bfa1 Merge branch 'ibmpc_f500_support' 2023-06-16 10:42:26 +09:00
tmk
87da14b12f core: Fix for KEYMAP_SECTION_ENABLE
It is required when UNIMAP_ENABLE is defined
2023-06-13 14:13:55 +09:00
tmk
b2edf39094 ibmpc: Remove unused error code 2023-06-10 18:15:45 +09:00
tmk
46a060cd88 core: Include action_layer.h 2023-03-22 23:11:43 +09:00
tmk
0090098141 lufa: Fix system/consumer report in Boot mouse
Cannot send system/consumer report while mouse is set
in boot protocol. Mouse, system and consumer report shares
one interface using different report IDs. In boot protocol
only mouse can report without report ID. If a report ID is
sent while in boot protocol it will be recognized as mosue
button state incorrectly by host.

A user reported that Mac ejects disc drive at startup when
using NeXT converter. Keeping mouse button pressed while
bootup forces Mac to eject disc.
2023-03-05 22:11:18 +09:00
tmk
45c7057b3b core: Fix BTLD action for tap key 2023-03-02 09:52:41 +09:00
tmk
e7aa03c8ab lufa: Fix debug messages 2023-02-27 13:12:20 +09:00
tmk
b3d2f64bb3 lufa: Fix condition for atmega32u2
the condition didn't work when variable MCU includes comment like:
    MCU ?= atmega32u2       # TMK converter
https://github.com/tmk/tmk_keyboard/issues/753

This affects RemoteWakeup on atmega32u2:
https://github.com/tmk/tmk_keyboard/issues/361
2023-02-26 22:35:09 +09:00
tmk
d51023bc8b ibmpc: Fix XT startup fail #751
SIEMENS_PCD_SUPPORT #747 code should be applied only for AT.
The code inhibits AT keyboard from sending by pulling clock line
down, this made XT keyboard support messed.
2023-02-17 09:12:57 +09:00
tmk
1852af2d76 usb_hid: Ducky One 2 Mini support #697 2023-02-01 09:50:56 +09:00
tmk
2dd9483383 m0110: Attempt international layout support 2023-01-30 12:03:09 +09:00
tmk
dc039fdf1a usb_hid: Update UHS2 for Apple Magic Keyboard(A1644/A1843) 2023-01-24 08:23:25 +09:00
tmk
cdf4bfc3ae usb_usb: Fix for Apple Magic Keyboard(A1644/A1843)
The device has keyboard function at interface 1, not 0. #606
2023-01-22 18:05:10 +09:00
tmk
d3fdaceb51 usb_usb: Update USB_Host_Shield_2.0-tmk
- hidboot SET_PROTOCOL/SET_IDLE fix #738
- merge upstream
2022-10-21 15:32:53 +09:00
tmk
52cdb909c9 ibmpc: siemens: Add inhibit after send/recv #747
SIEMENS PCD 2 Keyboard seems to require "inhibit" for a while after
sending and receiving session, for some reason.
A computer that can work with the keyboard adds "inhibit" after
communications, and this appears to be remedy for the keyboard.
https://github.com/tmk/tmk_keyboard/issues/747
2022-08-25 09:47:52 +09:00
tmk
4d32fbadb6 core: Increase buffer size for sotware serial
- serial_mouse can lost mouse data when enabling debug print
- TODO: serial_soft blocks in ISR for too long time
2022-06-03 23:35:23 +09:00
tmk
360872d269 core: Build option for LTO(Link Time Optimization)
This makes firmware size small but need to be tested more.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
https://github.com/arduino/Arduino/issues/660
https://github.com/arduino/ArduinoCore-avr/blob/master/platform.txt

* No `-fno-fat-lto-objects` is needed, it is the default.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ffat-lto-objects
* No `-fuse-linker-plugin` is needed, it is the default.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fuse-linker-plugin
2022-05-31 13:30:44 +09:00
tmk
3531ea81af adb: Remove unused definitions 2022-05-30 17:20:07 +09:00
tmk
d8991ce621 adb: Add wait after listen and talk
to make clear between stop bit and next attention
2022-05-30 17:20:07 +09:00
tmk
894f6b2ae5 adb: Fix comment of SRQ(Service Request) 2022-05-30 17:20:07 +09:00
tmk
2dc680b760 usb_usb: Update USB_Host_Shield_2.0-tmk
- SET_PROTOCOL can fail on some devices #738
2022-05-05 14:25:53 +09:00
tmk
059a330a29 core: Add JPY to unimap position code 2022-04-25 22:37:52 +09:00
tmk
083a008b66 adb: Fix for set LED
ADB Manager documents p.5-28
> Register 2 contains sixteen bits; be sure to change only the three bits
> that represent the three LED lights.
https://developer.apple.com/library/archive/documentation/mac/pdf/Devices/ADB_Manager.pdf

iMate reads register2 before setting LED state for this.
https://github.com/tmk/tmk_keyboard/wiki/Apple-Desktop-Bus#set-led
2022-04-25 18:05:13 +09:00
tmk
f1f32a743f adb: Detection of Service Request(SRQ) 2022-04-24 19:02:35 +09:00
tmk
dcebfb4fc4 next: Fix NeXT keyboard signal timing #704
NeXT keyboard uses 52.75us per pulse.
https://github.com/tmk/tmk_keyboard/issues/704
https://github.com/tmk/tmk_keyboard/wiki/NeXT
2022-04-15 01:56:28 +09:00
tmk
011fb9e731 adb_usb: Add Logitech Extended mouse support 2022-04-11 21:38:57 +09:00
tmk
2141d742ca adb_usb: Add Mouse Systems A3 support 2022-04-11 21:21:44 +09:00
tmk
2080d391a7 adb_usb: Add Microspeed/Contour/CH Products support 2022-04-11 21:21:44 +09:00
tmk
64de561818 adb_usb: Add Logitech Mouseman/Trackman support 2022-04-11 21:21:44 +09:00
tmk
cf26ad4ae1 adb_usb: Add Macally2 support
adb_usb: Fix Macally2 signed integer
adb_usb: Keep `mouse_handler' until other shows up
https://elixir.bootlin.com/linux/v5.17/source/drivers/macintosh/adbhid.c#L1068
https://geekhack.org/index.php?topic=14290.msg3116799#msg3116799
2022-04-11 19:26:13 +09:00
tmk
b690da7611 lufa: Revert console endpoint size to 32
Original prebuilt binary hid_listen for Windows doesn't work
with 64-byte size console endpoint.
Linux and MacOS hid_listen work well.
2022-03-31 12:38:00 +09:00
tmk
d29213ff3d lufa: Fix startup wait when console is disabled 2022-02-25 06:50:19 +09:00
tmk
85b69a7eab serial_uart: Make RBUF_SIZE cutomizable
Default size 256 bytes may be too much in many cases
2022-02-14 17:29:17 +09:00
tmk
b3b2e23584 lufa: Change wait for USB startup 2022-02-11 16:12:17 +09:00
tmk
d74ba8f173 lufa: Use 64B and double bank for console endpoint 2022-02-11 16:12:17 +09:00
tmk
93274fac63 ibmpc: Remove inline of isr() to save space 2022-02-07 22:17:18 +09:00
tmk
4b42f5c1b7 ibmpc: Remove PROTOCOL_XT_ERROR
This isn't needed as long as data line is read in proper timing.
Current ibmpc ISR has seemed to work well for reading data line so far.
2022-02-07 19:42:20 +09:00
tmk
b46e3ff09e core: Fix EXTRALDFLAGS 2022-02-02 18:32:40 +09:00
tmk
7fd2c6a666 ibmpc: Remove old unused files 2022-02-02 18:31:38 +09:00
tmk
159cc235c6 ibmpc: Fix isr_debug for host_send 2022-01-18 09:55:04 +09:00
tmk
6795e8fc0e core: Add keycode MACE and MACJ for macOS
Mac key 英数(eisuu) and かな(kana) send usage LANG2(0x91) and  LANG1(0x90)
respectively, and macOS uses them for English-Japanese input switching.
This gives the usages aliase as MACE and MACJ.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#japanese-jis-keys
2022-01-10 14:53:11 +09:00
tmk
c78992790e ibmpc: Increase timeout limit
This keyboard has very slow clocking like 3ms per code.
https://geekhack.org/index.php?topic=115479.msg3101326#msg3101326
2022-01-10 14:05:18 +09:00
tmk
d0cddedcdc adb_usb: Initialize keyboard dynamically #671
Extended and ISO keyboard are properly setup even after hot-plug
2021-11-17 23:49:12 +09:00