Commit Graph

494 Commits

Author SHA1 Message Date
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
László Monda
3853adc02c Rename InitLedSlaveDriver() to LedSlaveDriver_Init() and UhkSlaveLedDriverHandler() to LedSlaveDriver_Update() 2017-05-05 02:18:39 +02:00
László Monda
1b2d819944 Fix indentation. 2017-05-05 02:16:10 +02:00
László Monda
575b10af24 Fix indentation. 2017-05-05 02:15:18 +02:00
László Monda
107a771a4c Add slave_driver_initializer_t, slaveDriverInitializers, and initialize slaves in a more organized fashion. 2017-05-05 02:06:13 +02:00
László Monda
5371a3c17f Rename bridgeSlaves to slaves. 2017-05-05 01:25:57 +02:00
László Monda
a13a458683 Rename BridgeSlave*Handler() to UhkSlave*Handler() 2017-05-05 01:16:12 +02:00
László Monda
f9a9ebb1d9 Rename InitBridgeProtocolScheduler() to InitSlaveScheduler() 2017-05-05 01:13:36 +02:00
László Monda
b21cd8b493 Make the slave scheduler always jump to the next slave by disallowing slave drivers to lock the scheduler. 2017-05-05 01:08:39 +02:00
László Monda
f713a13a21 Remove dead code which is supposed to retrieve SP, but not sure if it actually does. 2017-05-05 00:21:09 +02:00
László Monda
b649d83d4f Rename #ifdef macro guards of recently renamed files according to the new filenames. 2017-05-05 00:19:39 +02:00
László Monda
d2eed48418 Rename bridge_protocol_scheduler.[ch] to slave_scheduler.[ch] 2017-05-05 00:17:27 +02:00
László Monda
4ce83593fa Rename BridgeSlaveType_* enums to UhkSlaveType_* 2017-05-05 00:13:40 +02:00
László Monda
c8abc2ec8e Rename bridge_slave_t to uhk_slave_t and bridge_slave_type_t to uhk_slave_type_t 2017-05-05 00:10:42 +02:00
László Monda
c291107312 Rename bridge_slave_*.[ch] to slave_driver_*.[ch] 2017-05-05 00:08:18 +02:00