Commit Graph
508 Commits
Author SHA1 Message Date
László Monda 0391259dab Replace tabs with spaces. 2017-06-05 16:14:46 +02:00
László Monda 6c60af4ba8 Preserve state across resets by putting Wormhole to the newly added .noinit section. Rename The jump to bootloader USB command to reenumerate and generalize accordingly by handling the passed reenumeration mode. 2017-06-04 23:32:48 +02:00
László Monda a6ed51360f Let's not mess around with SP. 2017-06-04 23:03:50 +02:00
László Monda 96b12aa69d Remove the UHK prefix from slave_type_t and its members. 2017-06-01 11:03:03 +02:00
László Monda f8883e416d Rename slaves to Slaves now that it's extern. 2017-06-01 11:01:49 +02:00
László Monda d0678bbb51 Make sure that SDB of the LED driver is pulled high before talking to it over I2C. 2017-06-01 10:59:41 +02:00
László Monda 0f51700ea9 Keep the slave scheduler going even if a slave driver failed to trigger an I2C callback. 2017-06-01 03:03:20 +02:00
László Monda 420097dddc Keep uhk_slave_t.isConnected updated. 2017-06-01 02:31:04 +02:00
László Monda 7be20e34c2 Reinitialize slaves after reconnecting them. 2017-06-01 01:32:57 +02:00
László Monda 909c6196b2 Add slave driver initializers to the slaves array. 2017-06-01 01:21:04 +02:00
László Monda 4ef45e2e3c Rename led_driver_state_t.frames to .ledValues 2017-06-01 01:08:56 +02:00
László Monda 22ea86eaf1 Get rid of ledsBuffer in favor of led_driver_state_t.frames 2017-06-01 01:01:08 +02:00
László Monda 281d3f547f Capitalize the first letter of ledDriverId_* enum values. 2017-06-01 00:51:19 +02:00
László Monda 328865b63b Update LEDs in small chunks, improving the responsivity of the keys of the left keyboard half dramatically. 2017-06-01 00:46:51 +02:00
László Monda a9fa765f99 Extract currentLedDriverState. 2017-05-31 23:59:39 +02:00
László Monda 0e41e403a9 Move LED control register commands to ledDriverStates. 2017-05-31 23:29:02 +02:00
László Monda 24addf1648 Add led_driver_state_t.i2cAddress 2017-05-31 22:46:43 +02:00
László Monda 2bb86eab70 Utilize the phase member of the LED driver state structure. 2017-05-31 22:33:06 +02:00
László Monda 291fddb0a4 Start to consolidate LED driver state into a struct. 2017-05-31 22:10:14 +02:00
László Monda 0bfdffa4e3 Remove uhkModuleExternalStates for the time being. Caching will be reintroduced later. 2017-05-31 21:48:45 +02:00
László Monda 3b181c1f87 Rename UHK module *state* identifiers to *phase*. 2017-05-31 21:45:33 +02:00
László Monda 55f505ac8c Rename LED driver *state* varibles to *phase*. 2017-05-31 21:41:11 +02:00
László Monda 1e290ebc34 Verify the integrity of key state update messages using CRC16-CCITT. 2017-05-31 03:26:50 +02:00
László Monda 2172b58a00 Remove redundant newline. 2017-05-31 01:42:46 +02:00
László Monda a8cb94ef15 Extract KEY_STATE_BUFFER_SIZE 2017-05-31 01:34:35 +02:00
László Monda 0edd56fa82 Serialize key states much more efficiently by using bits instead of bytes. 2017-05-31 01:26:16 +02:00
László Monda 8b69dd7d90 Move crc16.[ch] to shared 2017-05-30 17:20:06 +02:00
László Monda 8c96d2a042 Resolve compilation warning. 2017-05-30 17:12:14 +02:00
László Monda 8ac4f5a069 Rename bridge_protocol.h to slave_protocol.h 2017-05-29 22:17:40 +02:00
László Monda 1daf6db53c Rename *bridge* identifiers to *slave* 2017-05-29 22:14:11 +02:00
László Monda 98701d1c85 Update BusPal USB VID and PID. 2017-05-24 02:16:25 +02:00
László Monda 61dbe69d3b Update the VID and PID of the bootloader. 2017-05-24 02:10:10 +02:00
László Monda 28bf0cdeef Set final USB VID and PID. 2017-05-23 23:13:34 +02:00
László Monda 5b07a52848 Move test actions to the Fn layer. 2017-05-23 22:24:15 +02:00
László Monda 03ef36cb3a Enable the LED of the ISO key. 2017-05-23 22:20:32 +02:00
László Monda 40498a15b9 Fix typo by renaming init_peripherials.[ch] to init_peripherals.[ch] 2017-05-23 03:19:24 +02:00
László Monda debe0240dc Fix #ifdef macro names to be in sync with header filenames. 2017-05-23 03:08:31 +02:00
László Monda 54deb41e6c Get rid of v6 build and run configurations. 2017-05-23 02:44:21 +02:00
László Monda b039afc37a Remove UHK_PCB_MAJOR_VERSION macro from the right firmware and default to v7. 2017-05-23 02:29:19 +02:00
László Monda ebbe07474e Remove v6 build configurations. 2017-05-23 01:23:39 +02:00
László Monda c8df7eb099 Make USB_COMMAND_GET_ADC_VALUE trigger the relevant function. 2017-05-08 02:59:09 +02:00
László Monda 19adb8d3a4 Add USB command to retrieve ADC value. 2017-05-08 02:31:38 +02:00
László Monda 13e0d02574 Init the ADC. 2017-05-08 02:19:20 +02:00
László Monda 1fb3c8b132 Add ADC peripheral. 2017-05-08 02:09:50 +02:00
László Monda abd894e906 Rename bridgeSlave to slave 2017-05-05 02:35:01 +02:00
László Monda 387652faaa Rename uhk_slave_t.moduleId to uhk_slave_t.perDriverId 2017-05-05 02:32:45 +02:00
László Monda 588596662a Rename currentBridgeSlaveId to currentSlaveId 2017-05-05 02:28:34 +02:00
László Monda 32e1b8e17f Rename slave_handler_t to slave_updater_t and uhk_slave_t.slaveHandler to uhk_slave_t.updater 2017-05-05 02:26:48 +02:00
László Monda bbf937ff07 Fix indentation. 2017-05-05 02:25:06 +02:00
László Monda 58f295638b Rename InitUhkModules() to UhkModuleSlaveDriver_Init() and UhkSlaveUhkModuleHandler() to UhkModuleSlaveDriver_Update() 2017-05-05 02:21:59 +02:00