]> git.friedersdorff.com Git - max/tmk_keyboard.git/log
max/tmk_keyboard.git
4 years agoibmpc: Fix debug print and wait time
tmk [Fri, 24 Jan 2020 13:39:58 +0000 (22:39 +0900)]
ibmpc: Fix debug print and wait time

4 years agoibmpc_usb: Fix init code not to block main loop
tmk [Fri, 24 Jan 2020 13:26:30 +0000 (22:26 +0900)]
ibmpc_usb: Fix init code not to block main loop

blocking loop prevents console output at startup

4 years agoibmpc: Add two-byte buffer for data received
tmk [Thu, 23 Jan 2020 18:20:14 +0000 (03:20 +0900)]
ibmpc: Add two-byte buffer for data received

4 years agoibmpc: Fix stop bit check code in ISR
tmk [Thu, 23 Jan 2020 15:44:27 +0000 (00:44 +0900)]
ibmpc: Fix stop bit check code in ISR

removing function call makes prologue/epilogue shorter

4 years agoibmpc_usb: Fix hard reset code
tmk [Thu, 23 Jan 2020 14:40:04 +0000 (23:40 +0900)]
ibmpc_usb: Fix hard reset code

4 years agoibmpc: Change ISR code
tmk [Thu, 23 Jan 2020 14:36:52 +0000 (23:36 +0900)]
ibmpc: Change ISR code

It reads data line within 3us

4 years agoibm_usb: Fix interrupt enable macro
tmk [Thu, 23 Jan 2020 08:10:23 +0000 (17:10 +0900)]
ibm_usb: Fix interrupt enable macro

clear interrupt flag before enabling to ditch unwanted interrupt

4 years agoibmpc_usb: Fix keyboard initialize
tmk [Wed, 22 Jan 2020 05:54:33 +0000 (14:54 +0900)]
ibmpc_usb: Fix keyboard initialize

4 years agoibmpc: Add ibmpc_host_clear_isr
tmk [Wed, 22 Jan 2020 05:52:01 +0000 (14:52 +0900)]
ibmpc: Add ibmpc_host_clear_isr

4 years agoibmpc: Add intruppt disable and enable function
tmk [Fri, 17 Jan 2020 13:34:44 +0000 (22:34 +0900)]
ibmpc: Add intruppt disable and enable function

4 years agoibmpc_usb: Fix Disable/Enable keyboard
tmk [Fri, 17 Jan 2020 04:41:14 +0000 (13:41 +0900)]
ibmpc_usb: Fix Disable/Enable keyboard

- Return without enabling with F4 for 84-key AT wrongly before this fix
- disable/enable doesn't seems to be needed

4 years agoibmpc: Fix how to initialize keyboard
tmk [Wed, 8 Jan 2020 06:00:44 +0000 (15:00 +0900)]
ibmpc: Fix how to initialize keyboard

4 years agoibmpc: Fix error handling for keyobard hotswap
tmk [Tue, 7 Jan 2020 02:31:03 +0000 (11:31 +0900)]
ibmpc: Fix error handling for keyobard hotswap

4 years agoibmpc: Fix START case in ISR
tmk [Sat, 11 Jan 2020 08:16:00 +0000 (17:16 +0900)]
ibmpc: Fix START case in ISR

4 years agoibmpc: Read data line earlier in ISR as possible
tmk [Sat, 11 Jan 2020 07:32:46 +0000 (16:32 +0900)]
ibmpc: Read data line earlier in ISR as possible

4 years agoadb_usb: Update prebuilt firmware
tmk [Thu, 13 Feb 2020 00:04:44 +0000 (09:04 +0900)]
adb_usb: Update prebuilt firmware

4 years agoadb_usb: Fix start up delay for AEK/AEKII
tmk [Wed, 12 Feb 2020 23:42:37 +0000 (08:42 +0900)]
adb_usb: Fix start up delay for AEK/AEKII

Without proper delay keyboard the converter starts talking too early
before keyboard wakes up. ISO recognition and enabling Extention protocol
would be failed in the result.
https://github.com/tmk/tmk_keyboard/issues/640#issuecomment-585411393
200ms is enough for AEKs but 1000ms is used here for safety.

4 years agolufa: Rename LUFA_DEBUG to TMK_LUFA_DEBUG
tmk [Sun, 9 Feb 2020 12:17:52 +0000 (21:17 +0900)]
lufa: Rename LUFA_DEBUG to TMK_LUFA_DEBUG

4 years agolufa: Update makefile for new LUFA
tmk [Sat, 8 Feb 2020 10:54:58 +0000 (19:54 +0900)]
lufa: Update makefile for new LUFA

4 years agolufa: Use the latest LUFA library on github
tmk [Sat, 8 Feb 2020 11:31:38 +0000 (20:31 +0900)]
lufa: Use the latest LUFA library on github

4 years agolufa: Remove old LUFA directory
tmk [Sat, 8 Feb 2020 14:02:42 +0000 (23:02 +0900)]
lufa: Remove old LUFA directory

4 years agolufa: Fix console_putc
tmk [Fri, 7 Feb 2020 06:25:57 +0000 (15:25 +0900)]
lufa: Fix console_putc

buffering before host and hid_listen become ready

4 years agoadb_usb: Fix mouse init and debug print
tmk [Tue, 4 Feb 2020 05:52:00 +0000 (14:52 +0900)]
adb_usb: Fix mouse init and debug print

4 years agousb_usb: Fix unimap translation for Power
tmk [Mon, 3 Feb 2020 02:58:01 +0000 (11:58 +0900)]
usb_usb: Fix unimap translation for Power

4 years agocore: Fix unimap translation range
tmk [Mon, 3 Feb 2020 03:36:26 +0000 (12:36 +0900)]
core: Fix unimap translation range

4 years agoalps64: Update prebuilt firmware
tmk [Sat, 28 Dec 2019 13:57:22 +0000 (22:57 +0900)]
alps64: Update prebuilt firmware

4 years agoalps64: Fix for delay time for matrix scan
tmk [Sat, 28 Dec 2019 13:39:54 +0000 (22:39 +0900)]
alps64: Fix for delay time for matrix scan

Delay less than 20us can cause false key detection in some situations.
With week internal pull-up takes time to charge stray capacitance of
trace between ground fill(and fingers), perhaps?

In particular, when testing Alps64 PCB without diodes tweezer is used
to close a key and this makes trace longer, more capacitance in result.

4 years agoibmpc_usb: Add prebuilt firmware files
tmk [Thu, 5 Dec 2019 00:07:14 +0000 (09:07 +0900)]
ibmpc_usb: Add prebuilt firmware files

4 years agoibmpc_usb: Fix Makefiles
tmk [Wed, 4 Dec 2019 23:57:41 +0000 (08:57 +0900)]
ibmpc_usb: Fix Makefiles

4 years agoibmpc_usb: Add support for AT90USB1286
tmk [Wed, 4 Dec 2019 05:54:20 +0000 (14:54 +0900)]
ibmpc_usb: Add support for AT90USB1286

4 years agocore: Fix bootloader for 128KB flash
tmk [Wed, 4 Dec 2019 06:02:28 +0000 (15:02 +0900)]
core: Fix bootloader for 128KB flash

Got warning on bootloader address calculation when MCU has 128KB flash

4 years agocore: Fix ldscript for AT90USB to support unimap
tmk [Wed, 4 Dec 2019 06:05:55 +0000 (15:05 +0900)]
core: Fix ldscript for AT90USB to support unimap

4 years agocore: Add ldscript for AT90USB to support unimap
tmk [Wed, 4 Dec 2019 05:29:49 +0000 (14:29 +0900)]
core: Add ldscript for AT90USB to support unimap

4 years agoibmpc_usb: Add IBM PC Keyobard converter
tmk [Wed, 4 Dec 2019 02:35:48 +0000 (11:35 +0900)]
ibmpc_usb: Add IBM PC Keyobard converter

4 years agocore: Add IBM PC Keyboard protocol support
tmk [Wed, 4 Dec 2019 02:34:05 +0000 (11:34 +0900)]
core: Add IBM PC Keyboard protocol support

5 years agoterminal_usb: Add note for pull-up resistors
tmk [Tue, 12 Nov 2019 06:49:23 +0000 (15:49 +0900)]
terminal_usb: Add note for pull-up resistors

5 years agoterminal_usb: Change keymap for hidden keys
tmk [Tue, 12 Nov 2019 06:41:19 +0000 (15:41 +0900)]
terminal_usb: Change keymap for hidden keys

5 years agocore: Add short name for keycode KP_00 and KP_000
tmk [Tue, 12 Nov 2019 06:37:23 +0000 (15:37 +0900)]
core: Add short name for keycode KP_00 and KP_000

5 years agoAdding support for the IBM 102 Terminal Keyboard ( #1386304 ) (#634)
leragequit [Tue, 12 Nov 2019 04:02:01 +0000 (05:02 +0100)]
Adding support for the IBM 102 Terminal Keyboard ( #1386304 ) (#634)

Adding support for the IBM 102 Terminal Keyboard ( #1386304 )
The 1386304 has a slightly different matrix than the 122/101 terminal keyboard.

5 years agoalps64: Update firmware binary
tmk [Tue, 12 Nov 2019 03:39:32 +0000 (12:39 +0900)]
alps64: Update firmware binary

5 years agogh60: Change debouncing using timer count
tmk [Tue, 12 Nov 2019 03:36:49 +0000 (12:36 +0900)]
gh60: Change debouncing using timer count

5 years agoalps64: Change debouncing using timer count
tmk [Thu, 3 Oct 2019 04:41:48 +0000 (13:41 +0900)]
alps64: Change debouncing using timer count

5 years agofc980c: Update firmware binary
tmk [Tue, 1 Oct 2019 05:18:06 +0000 (14:18 +0900)]
fc980c: Update firmware binary

5 years agofc980c: Fix initial state of LED
tmk [Tue, 1 Oct 2019 05:16:44 +0000 (14:16 +0900)]
fc980c: Fix initial state of LED

5 years agousb_usb: Fix markdown notation in README
tmk [Wed, 18 Sep 2019 07:51:44 +0000 (16:51 +0900)]
usb_usb: Fix markdown notation in README

5 years agousb_usb: Update firmware file
tmk [Wed, 18 Sep 2019 07:09:10 +0000 (16:09 +0900)]
usb_usb: Update firmware file

5 years agousb_usb: Add BTLD unimap to start bootloader
tmk [Wed, 18 Sep 2019 06:42:47 +0000 (15:42 +0900)]
usb_usb: Add BTLD unimap to start bootloader

Press App(Menu) + Pause key to start bootloader

5 years agousb_usb: Enable NO_DEBUG build option
tmk [Wed, 18 Sep 2019 06:41:24 +0000 (15:41 +0900)]
usb_usb: Enable NO_DEBUG build option

to save flash memory space

5 years agousb_usb: Clean print for debug
tmk [Wed, 18 Sep 2019 06:29:38 +0000 (15:29 +0900)]
usb_usb: Clean print for debug

5 years agocore: Add NO_PRINT and NO_DEBUG build option
tmk [Wed, 18 Sep 2019 06:09:02 +0000 (15:09 +0900)]
core: Add NO_PRINT and NO_DEBUG build option

Lines below in Makefile disable print and debug functions respectively.
    NO_PRINT = yes
    NO_DEBUG = yes

5 years agocore: Remove unneeded code in bootloader_jump
tmk [Wed, 18 Sep 2019 05:14:25 +0000 (14:14 +0900)]
core: Remove unneeded code in bootloader_jump

5 years agocore: Add AC_BTLD to actionmap and unimap
tmk [Tue, 17 Sep 2019 11:55:35 +0000 (20:55 +0900)]
core: Add AC_BTLD to actionmap and unimap

Now that it can jump to bootloader with AC_BTLD

5 years agocore: Read bootloader size from AVR fuse bits
tmk [Tue, 17 Sep 2019 07:19:52 +0000 (16:19 +0900)]
core: Read bootloader size from AVR fuse bits

This makes defining BOOTLOADER_SIZE macro optional.

5 years agocore: Fix comment and remove unused code
tmk [Mon, 16 Sep 2019 09:42:50 +0000 (18:42 +0900)]
core: Fix comment and remove unused code

5 years agocore: Add bootkey of Caterina bootloader
tmk [Mon, 16 Sep 2019 08:49:38 +0000 (17:49 +0900)]
core: Add bootkey of Caterina bootloader

The bootkey set in bootloader_jump() works with Pro Micro and Leonardo.
This fix doesn't seem to prevent other bootloaders, however, it can be
disabled by defining NO_BOOTLOADER_CATERINA_BOOTKEY.

5 years agops2_usb: Add Makefile.32u4
tmk [Mon, 9 Sep 2019 22:54:36 +0000 (07:54 +0900)]
ps2_usb: Add Makefile.32u4

5 years agops2_usb: Update README
tmk [Mon, 9 Sep 2019 03:10:15 +0000 (12:10 +0900)]
ps2_usb: Update README

5 years agops2_usb: Make build files clean
tmk [Mon, 9 Sep 2019 02:50:11 +0000 (11:50 +0900)]
ps2_usb: Make build files clean

5 years agopc98_usb: Fix scan code description
tmk [Wed, 4 Sep 2019 15:20:32 +0000 (00:20 +0900)]
pc98_usb: Fix scan code description

5 years agopc98_usb: Fix STOP as magic key
tmk [Wed, 4 Sep 2019 15:01:07 +0000 (00:01 +0900)]
pc98_usb: Fix STOP as magic key

5 years agopc98_usb: Fix debug print codes
tmk [Wed, 4 Sep 2019 14:43:29 +0000 (23:43 +0900)]
pc98_usb: Fix debug print codes

5 years agopc98_usb: Change LUFA build option for #627
tmk [Wed, 4 Sep 2019 14:41:22 +0000 (23:41 +0900)]
pc98_usb: Change LUFA build option for #627

5 years agoAdd PC-8801 Keyboard support. (#620)
Haruka Inoue [Tue, 23 Jul 2019 01:14:59 +0000 (10:14 +0900)]
Add PC-8801 Keyboard support. (#620)

* Add PC-8801 Keyboard support.

* Add PC-8801 Keyboard support.

* Add PC-8801 Keyboard support.

5 years agoibm4704_usb: Update document
tmk [Fri, 12 Jul 2019 18:02:38 +0000 (03:02 +0900)]
ibm4704_usb: Update document

5 years agocore: Fix ibm4704_send() wait for clock to start
tmk [Fri, 12 Jul 2019 07:08:05 +0000 (16:08 +0900)]
core: Fix ibm4704_send() wait for clock to start

5 years agoadb_usb: Update README
tmk [Mon, 24 Jun 2019 07:57:22 +0000 (16:57 +0900)]
adb_usb: Update README

5 years agoadb_usb: Fix for Macally ADB keyboard
tmk [Mon, 24 Jun 2019 07:11:36 +0000 (16:11 +0900)]
adb_usb: Fix for Macally ADB keyboard

- The odd keyboard sends key0 and key1 inversely for no reason.
  https://deskthority.net/workshop-f7/macally-mk96-t20116.html

5 years agoadb_usb: Update binary firmware
tmk [Sun, 23 Jun 2019 06:38:06 +0000 (15:38 +0900)]
adb_usb: Update binary firmware

5 years agoMerge branch 'adb_extended_mouse'
tmk [Sun, 23 Jun 2019 06:20:06 +0000 (15:20 +0900)]
Merge branch 'adb_extended_mouse'

5 years agoadb_usb: Change Unimap for ADB keyboard
tmk [Fri, 21 Jun 2019 23:35:57 +0000 (08:35 +0900)]
adb_usb: Change Unimap for ADB keyboard

5 years agoadb_usb: Remove unnecessary waits
tmk [Sun, 23 Jun 2019 05:55:09 +0000 (14:55 +0900)]
adb_usb: Remove unnecessary waits

5 years agoadb_usb: Clean repository
tmk [Fri, 21 Jun 2019 05:40:09 +0000 (14:40 +0900)]
adb_usb: Clean repository

5 years agoadb_usb: Fix mouse_init
tmk [Sun, 23 Jun 2019 04:31:54 +0000 (13:31 +0900)]
adb_usb: Fix mouse_init

5 years agoadb_usb: Change mouse acceleration according to cpi
tmk [Sat, 22 Jun 2019 02:00:08 +0000 (11:00 +0900)]
adb_usb: Change mouse acceleration according to cpi

5 years agocore:adb_usb: Add Extended Mouse Protocol support #274
tmk [Fri, 21 Jun 2019 04:03:49 +0000 (13:03 +0900)]
core:adb_usb: Add Extended Mouse Protocol support #274

Also add Kensington Turbo Mouse 5 specific initialization

5 years agoalps64: Update unimap firmware binary
tmk [Thu, 30 May 2019 02:12:06 +0000 (11:12 +0900)]
alps64: Update unimap firmware binary

5 years agoalps64: Change keymap for PCB check
tmk [Thu, 30 May 2019 02:06:13 +0000 (11:06 +0900)]
alps64: Change keymap for PCB check

5 years agocore: Add hook_process_action()
tmk [Wed, 29 May 2019 05:08:03 +0000 (14:08 +0900)]
core: Add hook_process_action()

5 years agousb_usb: Update unimap firmware binary
tmk [Wed, 29 May 2019 14:45:35 +0000 (23:45 +0900)]
usb_usb: Update unimap firmware binary

5 years agolufa: Print TMK version to console
tmk [Wed, 29 May 2019 14:40:35 +0000 (23:40 +0900)]
lufa: Print TMK version to console

5 years agousb_usb: Handle Rollover error
tmk [Fri, 10 May 2019 01:37:19 +0000 (10:37 +0900)]
usb_usb: Handle Rollover error

How keyobards report Rollover error:
Cherry: 0101010101010101 https://geekhack.org/index.php?topic=69169.msg2638223#msg2638223
Apple:  0000010101010101 https://geekhack.org/index.php?topic=69169.msg2760969#msg2760969

5 years agoMerge branch 'usb_usb_init_fix'
tmk [Wed, 29 May 2019 06:11:40 +0000 (15:11 +0900)]
Merge branch 'usb_usb_init_fix'

5 years agousb_usb: Override startup and suspend hook
tmk [Wed, 8 May 2019 02:48:47 +0000 (11:48 +0900)]
usb_usb: Override startup and suspend hook

5 years agocore: Add hook_usb_startup_wait_loop
tmk [Wed, 8 May 2019 02:44:56 +0000 (11:44 +0900)]
core: Add hook_usb_startup_wait_loop

5 years agousb_usb: Add options for disabling blocking loops
tmk [Tue, 7 May 2019 03:01:59 +0000 (12:01 +0900)]
usb_usb: Add options for disabling blocking loops

USB startup wait loop delays UHS2 Task() starting for a while
like 200-600ms and USB suspend loop blocks the Task() while power
saving like 15-17ms. These loops may cause keyboard enumeration
failure, perhaps. Not confirmed it yet though.

5 years agolufa: Startup and suspend loop can be disabled
tmk [Tue, 7 May 2019 02:09:25 +0000 (11:09 +0900)]
lufa: Startup and suspend loop can be disabled

Startup wait loop is originally intended to start keyboard task loop and
after console output endpoint becomes available. But now that console
output is buffered when it is not available and you don't have to wait
for it to be ready. You can disable the startup wait loop by defining
NO_WAIT_FOR_USB_CONFIGURED in config.h

Suspend loop is used for power saving by making tasks stop while
USB bus is under suspend status. But this may cause problem on some
devices like converter that must keep doing its task to retain
communication with keyboard. The suspend loop can block its task for
around 15-17ms. You can disable the suspend loop  by defining
NO_USB_SUSPEND_LOOP in config.h.

5 years agousb_usb: Add option for disabling suspend power down
tmk [Wed, 8 May 2019 03:53:15 +0000 (12:53 +0900)]
usb_usb: Add option for disabling suspend power down

5 years agousb_usb: Order of init prevents uneeded bus reset
tmk [Mon, 6 May 2019 03:15:37 +0000 (12:15 +0900)]
usb_usb: Order of init prevents uneeded bus reset

Device classes are registered to array of config driver pool and
tried in that order until proper class is found in configuration process.
If tried driver cannot handle device, bus reset is issued to the device.

5 years agolufa:usb_usb: matrix_scan() is no longer needed
tmk [Sun, 5 May 2019 16:52:25 +0000 (01:52 +0900)]
lufa:usb_usb: matrix_scan() is no longer needed

This is due to SOF timing fix of USB_Host_Shield_2.0.
The matrix_scan() was needed for usb_usb converter to recognize FC660C at startup.

5 years agousb_hid: Change to USB_Host_Shield_2.0 of tmk repo
tmk [Mon, 6 May 2019 14:01:18 +0000 (23:01 +0900)]
usb_hid: Change to USB_Host_Shield_2.0 of tmk repo

- Fix SOF/Keep Alive start timing
- Disable bus detection during settling after attach
- Remove keyboard LED blinking at configuring

5 years agolufa: Fix for freeze at re/boot time problem
tmk [Fri, 29 Mar 2019 06:45:20 +0000 (15:45 +0900)]
lufa: Fix for freeze at re/boot time problem

Calling led_set() in ISR can cause the problem. With converter
especially, led_set() can take long time and USB can be stuck in the end.
USB-USB converter freezes occasionally when computer power up or reboot.
https://geekhack.org/index.php?topic=69169.msg2740179#msg2740179
This is also related to suspend/wakeup issue #386.

5 years agolufa: Fix Change debug print message
tmk [Mon, 6 May 2019 07:27:46 +0000 (16:27 +0900)]
lufa: Fix Change debug print message

5 years agocore: Avoid deadlock when uart.c is used in ISR
tmk [Thu, 2 May 2019 11:57:48 +0000 (20:57 +0900)]
core: Avoid deadlock when uart.c is used in ISR

5 years agolufa: Fix for UART debug print
tmk [Fri, 26 Apr 2019 00:17:50 +0000 (09:17 +0900)]
lufa: Fix for UART debug print

5 years agousb_usb: Add debug print for low level
tmk [Sun, 21 Apr 2019 00:19:22 +0000 (09:19 +0900)]
usb_usb: Add debug print for low level

5 years agolufa: This prevents resume when debug
tmk [Sun, 31 Mar 2019 05:42:19 +0000 (14:42 +0900)]
lufa: This prevents resume when debug

5 years agolufa: Add debug print support with UART
tmk [Tue, 26 Mar 2019 07:09:45 +0000 (16:09 +0900)]
lufa: Add debug print support with UART

5 years agocore: Fix uart.c for ATmega32U4
tmk [Fri, 22 Mar 2019 13:15:26 +0000 (22:15 +0900)]
core: Fix uart.c for ATmega32U4

5 years agoCorrect the comments of matrix ROW and COL. (#604)
You Xiaojie / 尤晓杰 [Mon, 18 Mar 2019 06:47:07 +0000 (14:47 +0800)]
Correct the comments of matrix ROW and COL. (#604)

according to the code:
static uint8_t matrix[MATRIX_ROWS];
#define ROW(code)      (code>>3)
#define COL(code) (code&0x07)
in converter/terminal_usb/matrix.c
ROW is decided by bits 7-4 of scancode
COL is decided by bits 2-0 of scancode

5 years agoRedefine GRV,CAPS,RALT and RCTL (#596)
You Xiaojie / 尤晓杰 [Sun, 17 Mar 2019 23:03:04 +0000 (07:03 +0800)]
Redefine GRV,CAPS,RALT and RCTL (#596)