63d4067400
Remove I2C status code comments. Let the I2C watchdog fully handle I2C issues for the time being.
László Monda
2017-03-16 14:48:02 +01:00
8206845b75
Clean up bridgeProtocolCallback.
László Monda
2017-03-16 14:34:25 +01:00
b9aa846637
Move i2CSlaveCallback() to init_peripherials.c. Remove IsoJumperState.
László Monda
2017-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ó Monda
2017-03-16 14:13:09 +01:00
888eea2dd6
Point to the updated KSDK featuring the volatile I2C_Watchdog.
László Monda
2017-03-16 14:02:53 +01:00
0e52eb2267
Use one-line comments.
László Monda
2017-03-16 13:58:15 +01:00
8e70296659
Don't redefine the I2C_Watchdog of the KSDK.
László Monda
2017-03-16 13:50:49 +01:00
7013d0421f
Apparently, even the 7th generation prototype needs this code block to work for some reason.
László Monda
2017-03-16 04:18:17 +01:00
ac872f8d85
Fix numOfChnls by setting it to 1.
László Monda
2017-03-16 04:11:42 +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ó Monda
2017-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ó Monda
2017-03-13 01:30:28 +01:00
e3d632e4f0
Make LedPwm_*() do nothing for <7 prototypes.
László Monda
2017-03-12 22:25:22 +01:00
3ef944353f
Fix TEST_LED_TOGGLE()
László Monda
2017-03-12 22:24:44 +01:00
832c687ea7
Add v6-{release,debug}-srec build configurations. Add "uhk-right v6 {release,debug} kboot" run configurations.
László Monda
2017-03-08 00:48:44 +01:00
eb951dd3d2
Add kboot launch files.
László Monda
2017-03-08 00:36:02 +01:00
cde26680a8
Reindent the section comments of the configuration descriptor to resemble the style of other descriptors.
László Monda
2017-03-07 23:16:04 +01:00
15388640c8
Better organize and name HID macros.
László Monda
2017-03-07 22:11:18 +01:00
264c5b671b
Refactor the system keyboard report descriptor using LUFA macros.
László Monda
2017-03-07 21:50:00 +01:00
6b54cfcda3
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda
2017-03-07 19:12:25 +01:00
36cca6c287
Refactor media keyboard report descriptor using LUFA macros.
László Monda
2017-03-07 19:11:26 +01:00
463dc3bb7f
Update README.md
László Monda
2017-03-07 01:07:46 +01:00
c4fa5b9e7d
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda
2017-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ó Monda
2017-03-07 00:55:43 +01:00
7ab0f29838
Update README.md
László Monda
2017-03-07 00:25:40 +01:00
4676b85a19
Update README.md
László Monda
2017-03-06 23:19:24 +01:00
ba4680452f
Update README.md
László Monda
2017-03-06 23:05:13 +01:00
4efce11e96
Update README.md
László Monda
2017-03-06 22:16:46 +01:00
62a3f6b3a4
Add system keyboard interface and add sleep, power and wake keys.
László Monda
2017-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ó Monda
2017-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ó Monda
2017-03-04 03:40:50 +01:00
bc0715c63d
Remove redundant aliases.
László Monda
2017-03-04 02:19:58 +01:00
c49593fe51
Make the Arduino HID library work with the firmware.
László Monda
2017-03-04 01:10:20 +01:00
cb3b9b362b
Add missing Fn key scancodes and fix some.
László Monda
2017-03-04 01:03:12 +01:00
d0198f069f
Add useful files from the Aruino HID library.
László Monda
2017-03-03 23:21:13 +01:00
a2bd0cf602
Don't put more scancodes into the individual reports than possible.
László Monda
2017-03-03 23:01:26 +01:00
f83d655c15
Indent case clauses deeper.
László Monda
2017-03-03 22:51:29 +01:00
fdb13d3a7e
Use KEY_ACTION_KEYSTROKE instead of KEY_ACTION_{BASIC,MEDIA}_KEYSTROKE. Add keystroke_type_t.
László Monda
2017-03-03 22:49:20 +01:00
d2e3d6becf
Rename .basicKeystroke back to .keystroke
László Monda
2017-03-03 22:36:17 +01:00
cc2c06f497
Rename a couple of members of key_action_t to be more intuitive.
László Monda
2017-03-03 21:59:28 +01:00
b6cc59125d
Remove __unused_bits fields and outdated comments.
László Monda
2017-03-03 21:51:11 +01:00
c887b5e309
Add another HID interface using the consumer HID class for media keys. Resolves#32.
László Monda
2017-03-03 20:21:05 +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ó Monda
2017-02-28 00:13:31 +01:00
c1f8cca455
Enable LEDs on both halves by default.
László Monda
2017-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ó Monda
2017-02-26 11:10:04 +01:00
e76910318a
Remove the unused ../../.. include path.
László Monda
2017-02-26 03:07:47 +01:00
5055fa6e77
Remove the usb_desciptors include path and include the full path of these files.
László Monda
2017-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ó Monda
2017-02-26 02:50:21 +01:00
6f6d116351
Move usb_interface_*.[ch] files to the newly created usb_interfaces directory.
László Monda
2017-02-26 02:45:43 +01:00
d12dc7d8a0
Don't expose ProcessMouseAction() and rename it to processMouseAction()
László Monda
2017-02-26 02:41:48 +01:00
03591ce180
Rename action.c to usb_report_updater.c
László Monda
2017-02-26 02:37:21 +01:00
c8d4824f3d
Swap left and right mouse buttons so that now they work as originally intended.
László Monda
2017-02-26 02:10:05 +01:00
014fb98932
bzero() mouse report instead of zeroing individual fields.
László Monda
2017-02-26 02:08:19 +01:00
a3f8027758
Rename HandleMouseKey() to ProcessMouseAction()
László Monda
2017-02-26 02:06:36 +01:00
3561906ebb
Remove PreviousKeyStates for the time being.
László Monda
2017-02-26 02:05:36 +01:00
878cedd31c
Rename HandleKeyboardEvents() to UpdateActiveUsbReports().
László Monda
2017-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ó Monda
2017-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ó Monda
2017-02-26 01:34:38 +01:00
66d41a0d49
Inline PressKey() and handleKey() into HandleKeyboardEvents()
László Monda
2017-02-26 01:25:52 +01:00
c09ed00e5a
Extract keyToAction()
László Monda
2017-02-26 00:46:47 +01:00
7eec8281ce
Remove arguments from HandleKeyboardEvents.
László Monda
2017-02-26 00:44:43 +01:00
73dec54ee1
Remove keyMasks because they made the right keyboard half crash when pressing a layer switcher key.
László Monda
2017-02-26 00:35:26 +01:00
ce4d9ca839
Rewrite layer switcher handling.
László Monda
2017-02-26 00:26:33 +01:00
9ec01bc515
Remove the unused prevKeyStates argument from hasKeyPressed()
László Monda
2017-02-25 23:41:01 +01:00
490382f31b
Rename getKeycode() to keyToAction() and code to action.
László Monda
2017-02-25 22:28:17 +01:00
40397a70bc
Remove check because keyId < MAX_KEY_COUNT_PER_MODULE should always be true.
László Monda
2017-02-25 22:13:48 +01:00
6cf27799a6
Implement the I2C watchdog using PIT.
László Monda
2017-02-25 17:48:37 +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ó Monda
2017-02-20 18:30:30 +01:00
ea295ba9eb
Update README.md
László Monda
2017-02-19 17:13:10 +01:00
f56b10041e
Delete README.md
László Monda
2017-02-19 17:08:22 +01:00
e8331a108c
Update README.md
László Monda
2017-02-19 17:06:18 +01:00
780f8199ea
Update README.md
László Monda
2017-02-19 17:02:30 +01:00
dd2821ec5d
Update README.md
László Monda
2017-02-19 16:55:38 +01:00
c9aed34c01
Update README.md
László Monda
2017-02-19 16:48:41 +01:00
eddc2990de
Update README.md
László Monda
2017-02-19 16:45:52 +01:00
96edaf7b1f
Update README.md
László Monda
2017-02-19 16:40:46 +01:00
e38a7c2f2b
Update README.md
László Monda
2017-02-19 16:28:09 +01:00
85c49de882
Update README.md
László Monda
2017-02-19 16:24:41 +01:00
1754d11e94
Update README.md
László Monda
2017-02-19 16:22:04 +01:00
f7376e6ef1
Update README.md
László Monda
2017-02-19 16:20:20 +01:00
99c5148717
Update README.md
László Monda
2017-02-19 16:19:12 +01:00
3d9fb9d4e0
Update README.md
László Monda
2017-02-19 16:18:47 +01:00
4a8311c8b8
Update README.md
László Monda
2017-02-19 16:16:39 +01:00
e97ce514d7
Update README.md
László Monda
2017-02-19 16:15:42 +01:00
f37dd303fc
Update README.md
László Monda
2017-02-19 13:41:34 +01:00
4904572417
Move temp and counter out of InitI2C() so that the compiler shouldn't optimize the loop.
László Monda
2017-02-18 21:41:11 +01:00
d6d0e5d97f
Modify init_peripherials.c given that I2C_Watchdog is defined in the KSDK now.
László Monda
2017-02-18 21:25:54 +01:00
a35ee8b981
Force Unix newlines for *.[ch] files.
László Monda
2017-02-18 19:09:34 +01:00
05e8b046f5
Clean up coding style.
László Monda
2017-02-18 19:08:49 +01:00
226bc31385
Fix the I2C dead-lock of the Master
Santiago
2017-02-18 13:11:45 +01:00
880981ac14
Initialize I2C slave mode with I2C_SlaveInit().
László Monda
2017-02-05 20:55:13 +01:00
d1955ffa54
Don't call I2C_MasterInit() as the left keyboard half is an I2C slave.
László Monda
2017-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ó Monda
2017-02-03 01:37:25 +01:00