Commit Graph

1124 Commits

Author SHA1 Message Date
László Monda
52bb02bc3d Rename build and run configurations to reflect device ids. 2017-10-29 21:54:02 +01:00
László Monda
e8ab25493e Make the firmware upgrade scripts working directory independent. 2017-10-29 19:09:32 +01:00
László Monda
72b279841c Port the blhost-unix.sh firmware update script of the right keyboard half to ShellJS resulting in update-master-firmware.js 2017-10-29 18:20:13 +01:00
László Monda
4e2d867424 Extract the USB product ID for getBlhostCmd() 2017-10-29 18:17:48 +01:00
László Monda
a5402e7c6a Extract checkFirmwareImage() 2017-10-29 17:47:24 +01:00
László Monda
f847cc844e Extract getBlhostCmd() to shared.js 2017-10-29 17:35:55 +01:00
László Monda
976e402445 Make update-slave-firmware.js extremely resilient (not a single failure out of 100 updates). Add shared.js 2017-10-29 17:17:12 +01:00
László Monda
cf007f81bd Merge branch 'master' into add-device-name 2017-10-28 18:46:46 +02:00
László Monda
569493cbfa Add UsbDebugInfo to aid future debugging via USB. 2017-10-28 17:12:52 +02:00
László Monda
f0a98eebb5 Set the initial keymap abbrivation to FTY (for factory keymap). 2017-10-26 20:32:19 +02:00
László Monda
55e4997ea2 Make the system keyboard descriptor play nicely with OSX. 2017-10-26 18:22:37 +02:00
László Monda
5642ab29a1 Reorder USB interfaces in usb_device_config.h, too. 2017-10-26 01:12:51 +02:00
László Monda
6bdd320ed8 Reorder USB interfaces all across the codebase in the following order: generic HID, basic keyboard, media keyboard, system keyboard, mouse. 2017-10-26 00:52:20 +02:00
László Monda
c77286512c Reset keyboard reports just before changing them by UpdateActiveUsbReports(). This seems to completely solve the repeated media key issue. 2017-10-25 18:31:52 +02:00
László Monda
c7b6acd838 Use the let keyword for defining variables. 2017-10-24 17:32:27 +02:00
László Monda
9db5c5e067 Port blhost-unix.sh as update-slave-firmware.js using ShellJS. 2017-10-24 13:59:36 +02:00
László Monda
c370cab513 Use the renamed send-kboot-command-to-slave.js 2017-10-23 22:24:40 +02:00
László Monda
85b1a65ea7 Implement KbootCommand_Ping and set set left BOOTLOADER_TIMEOUT_MS back to 100 ms. 2017-10-23 21:33:08 +02:00
László Monda
c46dcad490 Use reenumerate.js instead of jump-to-bootloader.js and make left/blhost-unix.sh handle argument related errors. 2017-10-23 16:52:15 +02:00
László Monda
ab807cd0c8 Make sendKbootCommand() accept various command types, not only reset. 2017-10-23 01:19:19 +02:00
László Monda
92ee3b5606 Add KBOOT I2C slave driver, its related USB command, and make the firmware updater script of the left half successfully reset the left half after firmware update. 2017-10-22 02:17:43 +02:00
László Monda
e57d199b40 Move FIXED_BUSPAL_BOOTLOADER to buspal/command.c 2017-10-21 03:53:01 +02:00
László Monda
95faf64b76 Remove the now unused FORCE_BUSPAL macro. 2017-10-21 03:50:07 +02:00
László Monda
5149e7e8ad Remove the now unused ALWAYS_ENTER_BOOTLOADER macro. 2017-10-21 03:40:10 +02:00
László Monda
f67bcced4a Keep only one release and one debug build configuration. Add related kboot run configurations. 2017-10-21 03:35:17 +02:00
László Monda
e9920cfebb Increase the delay from 1s to 2s and flash the firmware script argument. 2017-10-21 03:28:54 +02:00
László Monda
2e07627359 Temporarily increase left bootloader timeout from 100ms to 3000 ms for testing purposes. 2017-10-21 03:12:21 +02:00
László Monda
89fef3d933 Upon receiving the reset BusPal command, reset the MCU and reenumerate in normal keyboard mode. 2017-10-21 01:29:05 +02:00
László Monda
a052f4f59c Add blhost script for the left firmware, too. 2017-10-21 01:27:33 +02:00
László Monda
25f8017879 Get rid of the now obsoleted bootloader_config.h 2017-10-20 00:52:32 +02:00
László Monda
5ec619532a Reference the latest version of Agent, containing the fixed uhk.js which makes jump-to-bootloader.js work. 2017-10-20 00:34:45 +02:00
László Monda
968c6c0416 Call NVIC_SystemReset() instead of custom code. 2017-10-20 00:34:01 +02:00
László Monda
0b4ca43ed6 Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware 2017-10-20 00:32:37 +02:00
László Monda
3d46584b79 Don't try to npm install the dependencies of jump-to-bootloader.js but rather display instructions. 2017-10-20 00:31:06 +02:00
Stephen
8951ca992b Build linux in CI (#61)
* Linux build

* Trigger another build

* Another travis bump

* cleanup travis

* quotes required

* Update .travis.yml

* Update .travis.yml

* try double escape

* Update .travis.yml
2017-10-19 19:11:00 +02:00
László Monda
3230b94973 Make the left half call NVIC_SystemReset() upon receiving SlaveCommand_JumpToBootloader instead of jumping to the ROM address of the bootloader. This way the bootloader timeouts. Remove bootloader.c because it only contained JumpToBootloader() which is now unused. 2017-10-17 00:58:23 +02:00
László Monda
37c90cc4a7 Fix indentation. 2017-10-17 00:30:03 +02:00
László Monda
b3e025f443 Make reenumerate() set Wormhole.timeoutMs based on GenericHidInBuffer+2 2017-10-16 23:26:37 +02:00
László Monda
84b304fe02 Read (and ignore) device name. 2017-10-14 15:54:38 +02:00
László Monda
53cb8aa129 Delete armgcc build scripts because they aren't planned to be used anymore. add-dev-name 2017-10-14 13:04:39 +02:00
László Monda
7285630264 Make the release script put put package.json into the release. 2017-10-14 02:28:01 +02:00
László Monda
4563d26a5c Update changelog and package.json v2.1.0 2.1.0 2017-10-13 22:58:26 +02:00
László Monda
0b120a3286 Fix generic HID descriptor enumeration error by making UsbGenericHidReportDescriptor extern. 2017-10-13 22:49:09 +02:00
László Monda
d4200524d7 Make the firmware depend of the wormhole.[ch] files of the bootloader. Remove local wormhole.[ch] files. 2017-10-13 22:09:52 +02:00
László Monda
ef34094004 Add jump to slave bootloader command. 2017-10-12 19:57:41 +02:00
László Monda
d2fd7bc613 Add conditions that external components must satisfy in regards to version numbers in order to be interface with the UHK. 2017-10-11 15:32:57 +02:00
László Monda
7da33c606b Add package.json v2.0.0 2.0.0 2017-10-11 03:14:45 +02:00
László Monda
0f3ceef332 Add newline. 2017-10-11 03:12:24 +02:00
László Monda
908102855b Uppercase Data Model. 2017-10-11 03:11:30 +02:00
László Monda
a216d400ca Fix typo. 2017-10-11 02:29:43 +02:00