Commit Graph
33 Commits
Author SHA1 Message Date
László Monda c2582729f2 Remove LED_DRIVERS_ENABLED. 2018-04-28 11:43:01 +02:00
László Monda ae1240c103 Rename isFirstIteration to isFirstCycle and kStatus_Uhk_NoTransfer to kStatus_Uhk_IdleCycle. 2018-01-06 17:05:37 +01:00
László Monda 5a986d367e Only call LogI2cError() if the passed status is an actual I2C error, otherwise it slows the mouse pointer down. 2018-01-06 02:04:47 +01:00
László Monda 6ad425cbf9 Log I2C error counts on a per slave and per error type basis and expose them via USB. 2018-01-05 03:23:48 +01:00
László Monda 33e501cd83 Add SLAVE_COUNT 2018-01-04 23:16:48 +01:00
László Monda fa558abef3 Add LED_DRIVERS_ENABLED 2017-12-28 00:08:29 +01:00
László Monda c2efb5e0d0 Rename watchdog related variables to be more intuitively named. 2017-11-09 20:41:19 +01: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 3079d527b1 Add uhk_slave_t.disconnect() callback so that upon disconnecting the left keyboard half, the left LED driver IC can be marked as disconnected too, so it'll be reinitialized upon reconnect. This usually didn't happen because LED states are cached so the LED drivers are rarely spoken to. 2017-10-01 02:47:29 +02:00
László Monda 67c4b413b4 Remove SetLeds() from slave_scheduler.h 2017-09-29 01:21:49 +02:00
László Monda 827ad7e08e Rename BridgeCounter to I2cSchedulerCounter and move it to the top of masterCallback. 2017-09-29 00:50:56 +02:00
László Monda 55e0872967 Add new SlaveId_* values and an explanatory comment. 2017-09-28 22:59:22 +02:00
László Monda c04c5de504 Improve comment. 2017-09-28 22:53:24 +02:00
László Monda 9a42123648 Rename kStatus_Uhk_NoOp to kStatus_Uhk_NoTransfer. 2017-09-28 03:30:32 +02:00
László Monda 751810ec4c Explicitly add void to the argument list of zero argument functions. 2017-09-28 03:03:11 +02:00
László Monda ecf1ad2468 Don't use the extern keyword for functions because it's redundant. 2017-09-28 02:37:55 +02:00
László Monda ef9d9ee9a7 Add kStatus_Uhk_NoOp and make the scheduler handle it. 2017-09-22 14:32:43 +02:00
László Monda 946d3c1451 Add kStatus_Uhk_IdleSlave and ditch the global IsI2cTransferScheduled. Make slave drivers return status_t and utilize that value instead. 2017-08-19 17:47:56 +02:00
László Monda d22cb079b4 Rename Slave .initializer to .init and .updater to .update 2017-08-19 13:00:17 +02:00
László Monda 58f36cf6c3 Add I2C_WatchdogOuterCounter, I2C_WatchdogInnerCounter, BridgeCounter and expose them via USB getDebugInfo() 2017-08-19 12:12:49 +02:00
László Monda 17fd91c203 Make InitSlaveScheduler() and SetLeds() extern. 2017-08-09 00:17:05 +02:00
László Monda 670c6b6e82 Delete the unused slave_type_t enum type. 2017-08-08 23:59:24 +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 909c6196b2 Add slave driver initializers to the slaves array. 2017-06-01 01:21:04 +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 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 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 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 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