Commit Graph

352 Commits

Author SHA1 Message Date
László Monda
1bb76d7d3f Simplify JumpToBootloader() by only using the first method to reset the MCU. 2017-03-18 21:13:25 +01:00
László Monda
487c02335b Fix the state transfer of the test LED. 2017-03-18 21:06:40 +01:00
László Monda
4a5e5019aa Update LED PWM and test LED states of UHK modules in an async manner. 2017-03-18 15:12:31 +01:00
László Monda
14a856f8a6 Remove unused varaibles. 2017-03-18 02:45:10 +01:00
László Monda
070f9a0168 Extract BridgeSlaveUhkModuleHandler() to bridge_slaves/bridge_slave_uhk_module.[ch] 2017-03-18 02:34:48 +01:00
László Monda
067a3c1400 Add comment. 2017-03-18 02:27:05 +01:00
László Monda
ea7d36aebf Move bridge_slave_led_driver.[ch] to the newly created bridge_slaves directory. 2017-03-18 02:19:38 +01:00
László Monda
450520de24 Rename bridge_slave_led_driver_handler.[ch] to bridge_slave_led_driver.[ch] 2017-03-18 02:17:42 +01:00
László Monda
0656bb78c3 Fix indentation. 2017-03-18 02:04:49 +01:00
László Monda
afab1db73c Remove some unused sync I2C calls. 2017-03-18 02:02:56 +01:00
László Monda
3f661bc0ad Completely refactor I2C LED driver initialization from sync to async. 2017-03-18 01:37:13 +01:00
László Monda
db7a67a3fe Don't initialize per LED brightness levels synchronously because they get initialized asynchronously later. 2017-03-18 01:26:47 +01:00
László Monda
a89f0b675f Refactor sync LED driver control register initialization to async. 2017-03-18 01:12:44 +01:00
László Monda
5d3bc37ffc Don't initialize the blink registers. Their default value seems to be just fine. 2017-03-18 01:00:28 +01:00
László Monda
45d5db6773 Fix ledControlBufferRight[] and don't enable all the LEDs in a second sweep. 2017-03-18 00:46:15 +01:00
László Monda
ef8f00eaa9 Extract LED driver bridge slave handler into bridge_slave_led_driver_handler.[ch] 2017-03-17 23:04:01 +01:00
László Monda
ebc1c6156c Add perf.data to gitignore 2017-03-17 22:36:40 +01:00
László Monda
5e2c0a68bc Respect the return value of bridge protocol handlers and increment currentBridgeSlaveId accordingly. 2017-03-17 02:03:03 +01:00
László Monda
38d3da05a4 Replace "type" with "slaveHandler" callback inside bridge_slave_t. 2017-03-17 01:57:49 +01:00
László Monda
d9ffdb6bb3 Replace i2cAddress with moduleId in bridge_slave_t. 2017-03-17 01:46:06 +01:00
László Monda
02fe3b818f Extract I2cAsync{Read,Write}() to i2c.c 2017-03-17 01:33:04 +01:00
László Monda
8ff25b88fd Don't make the arguments of i2cAsync{Write,Read} volatile. 2017-03-16 15:35:52 +01:00
László Monda
0dfa87754e Add /v6-release-srec/ to gitignore. 2017-03-16 15:30:45 +01:00
László Monda
a0648a5768 Extract bridge slave handler functions. 2017-03-16 15:29:31 +01:00
László Monda
63d4067400 Remove I2C status code comments. Let the I2C watchdog fully handle I2C issues for the time being. 2017-03-16 14:48:02 +01:00
László Monda
8206845b75 Clean up bridgeProtocolCallback. 2017-03-16 14:34:25 +01:00
László Monda
0e52eb2267 Use one-line comments. 2017-03-16 13:58:15 +01:00
László Monda
8e70296659 Don't redefine the I2C_Watchdog of the KSDK. 2017-03-16 13:50:49 +01:00
László Monda
832c687ea7 Add v6-{release,debug}-srec build configurations. Add "uhk-right v6 {release,debug} kboot" run configurations. 2017-03-08 00:48:44 +01:00
László Monda
eb951dd3d2 Add kboot launch files. 2017-03-08 00:36:02 +01:00
László Monda
cde26680a8 Reindent the section comments of the configuration descriptor to resemble the style of other descriptors. 2017-03-07 23:16:04 +01:00
László Monda
15388640c8 Better organize and name HID macros. 2017-03-07 22:11:18 +01:00
László Monda
264c5b671b Refactor the system keyboard report descriptor using LUFA macros. 2017-03-07 21:50:00 +01:00
László Monda
36cca6c287 Refactor media keyboard report descriptor using LUFA macros. 2017-03-07 19:11:26 +01:00
László Monda
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. 2017-03-07 00:55:43 +01:00
László Monda
62a3f6b3a4 Add system keyboard interface and add sleep, power and wake keys. 2017-03-06 01:58:02 +01:00
László Monda
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. 2017-03-05 23:45:41 +01:00
László Monda
117332bb67 Use consumer keycodes for media keys so they work across platforms and not only on Linux. 2017-03-04 03:40:50 +01:00
László Monda
bc0715c63d Remove redundant aliases. 2017-03-04 02:19:58 +01:00
László Monda
c49593fe51 Make the Arduino HID library work with the firmware. 2017-03-04 01:10:20 +01:00
László Monda
cb3b9b362b Add missing Fn key scancodes and fix some. 2017-03-04 01:03:12 +01:00
László Monda
d0198f069f Add useful files from the Aruino HID library. 2017-03-03 23:21:13 +01:00
László Monda
a2bd0cf602 Don't put more scancodes into the individual reports than possible. 2017-03-03 23:01:26 +01:00
László Monda
f83d655c15 Indent case clauses deeper. 2017-03-03 22:51:29 +01:00
László Monda
fdb13d3a7e Use KEY_ACTION_KEYSTROKE instead of KEY_ACTION_{BASIC,MEDIA}_KEYSTROKE. Add keystroke_type_t. 2017-03-03 22:49:20 +01:00
László Monda
d2e3d6becf Rename .basicKeystroke back to .keystroke 2017-03-03 22:36:17 +01:00
László Monda
cc2c06f497 Rename a couple of members of key_action_t to be more intuitive. 2017-03-03 21:59:28 +01:00
László Monda
b6cc59125d Remove __unused_bits fields and outdated comments. 2017-03-03 21:51:11 +01:00
László Monda
c887b5e309 Add another HID interface using the consumer HID class for media keys. Resolves #32. 2017-03-03 20:21:05 +01:00
László Monda
1aae668ed5 Provide the correct numOfChnls value to FTM_SetupPwm(). Fixes #35. Fixes UltimateHackingKeyboard/bootloader#4. 2017-02-28 02:06:56 +01:00