b9aa846637
Move i2CSlaveCallback() to init_peripherials.c. Remove IsoJumperState.
László Monda2017-03-16 14:23:57 +01:00
f3c814a68e
The I2C watchdog of the right keyboard half was buggy, but not now that it's fixed, I2C_MasterInit() is not required anymore.
László Monda2017-03-16 14:13:09 +01:00
888eea2dd6
Point to the updated KSDK featuring the volatile I2C_Watchdog.
László Monda2017-03-16 14:02:53 +01:00
a6ff990288
Implement mysterious workaround to make the left keyboard half of the 6th generation prototype send scancodes to the right half.
László Monda2017-03-13 01:42:47 +01:00
44f1d46268
Remove incorrect I2C addressing mode setting that was copied from the buggy KSDK examples. The default addressing mode value is correct.
László Monda2017-03-13 01:30:28 +01:00
e3d632e4f0
Make LedPwm_*() do nothing for <7 prototypes.
László Monda2017-03-12 22:25:22 +01:00
cde26680a8
Reindent the section comments of the configuration descriptor to resemble the style of other descriptors.
László Monda2017-03-07 23:16:04 +01:00
c4fa5b9e7d
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda2017-03-07 00:57:48 +01:00
c7aab821e9
Include the agent and bootloader repos and reference them from blhost-unix.sh to make the firmware update script work out of the box.
László Monda2017-03-07 00:55:43 +01:00
62a3f6b3a4
Add system keyboard interface and add sleep, power and wake keys.
László Monda2017-03-06 01:58:02 +01:00
c7f101b67f
Extract USB_*_INTERFACE_COUNT macros to usb_interface_*.h files and make usb_device_config.h use them along with USB_*_ENDPOINT_COUNT macros.
László Monda2017-03-05 23:45:41 +01:00
117332bb67
Use consumer keycodes for media keys so they work across platforms and not only on Linux.
László Monda2017-03-04 03:40:50 +01:00
797c51ca7a
Rework blhost-unix.sh a bit now that jump-to-bootloader.js times out and returns a relevant return code.
László Monda2017-02-28 00:13:31 +01:00
c1f8cca455
Enable LEDs on both halves by default.
László Monda2017-02-27 14:08:21 +01:00
8b46810643
Update USB reports from the main loop instead of the callback of the USB keyboard interface.
László Monda2017-02-26 11:10:04 +01:00
e76910318a
Remove the unused ../../.. include path.
László Monda2017-02-26 03:07:47 +01:00
5055fa6e77
Remove the usb_desciptors include path and include the full path of these files.
László Monda2017-02-26 03:05:15 +01:00
6e415696d7
Move merge_sensor.[ch], reset_button.[ch] and test_led.[ch] into the newly created peripherials directory.
László Monda2017-02-26 02:50:21 +01:00
6f6d116351
Move usb_interface_*.[ch] files to the newly created usb_interfaces directory.
László Monda2017-02-26 02:45:43 +01:00
d12dc7d8a0
Don't expose ProcessMouseAction() and rename it to processMouseAction()
László Monda2017-02-26 02:41:48 +01:00
03591ce180
Rename action.c to usb_report_updater.c
László Monda2017-02-26 02:37:21 +01:00
c8d4824f3d
Swap left and right mouse buttons so that now they work as originally intended.
László Monda2017-02-26 02:10:05 +01:00
014fb98932
bzero() mouse report instead of zeroing individual fields.
László Monda2017-02-26 02:08:19 +01:00
a3f8027758
Rename HandleMouseKey() to ProcessMouseAction()
László Monda2017-02-26 02:06:36 +01:00
3561906ebb
Remove PreviousKeyStates for the time being.
László Monda2017-02-26 02:05:36 +01:00
878cedd31c
Rename HandleKeyboardEvents() to UpdateActiveUsbReports().
László Monda2017-02-26 02:01:16 +01:00
e25b1cb912
Make mouse keys work by zeroing the mouse report at the beginning of updating USB reports. Rename UsbMouseAction() to usbMouseAction()
László Monda2017-02-26 01:52:18 +01:00
476a2fb89a
Inline isKeyPressed(). Rename key to action within HandleMouseKey() and a few other identifiers to make the code more intuitive.
László Monda2017-02-26 01:34:38 +01:00
66d41a0d49
Inline PressKey() and handleKey() into HandleKeyboardEvents()
László Monda2017-02-26 01:25:52 +01:00
b453297570
Add the v7-release-srec build configuration. Add the "uhk-right v7 debug kboot" run configuration. Make blhost-unix.sh expect the srec file to be transferred.
László Monda2017-02-20 18:30:30 +01:00
226bc31385
Fix the I2C dead-lock of the Master
Santiago2017-02-18 13:11:45 +01:00
880981ac14
Initialize I2C slave mode with I2C_SlaveInit().
László Monda2017-02-05 20:55:13 +01:00
d1955ffa54
Don't call I2C_MasterInit() as the left keyboard half is an I2C slave.
László Monda2017-02-05 14:25:18 +01:00
fc0fc4a3f4
Start to implement the fully asynchronous bridge protocol scheduler and use it to transfer key and LED state.
László Monda2017-02-03 01:37:25 +01:00