Commit Graph
1380 Commits
Author SHA1 Message Date
László Monda 92c0da9695 For the sake of correctness, only initialize the LED driver control register of the ISO key for the left LED driver IC. 2017-09-29 01:53:08 +02:00
László Monda 07142c3ce2 Fix coding style. 2017-09-29 01:46:51 +02:00
László Monda 81de51244a Leave some breathing room in dense code blocks. 2017-09-29 01:39:34 +02:00
László Monda 2b6762d3e0 Indent cases inside switches. 2017-09-29 01:35:25 +02:00
László Monda 28f0cdd2c0 Use LED_BRIGHTNESS_LEVEL in led_display.c instead of magic values. 2017-09-29 01:33:21 +02:00
László Monda eb2d7ada3a Extract LED_BRIGHTNESS_LEVEL. 2017-09-29 01:30:02 +02:00
László Monda 76a80c3090 Inline SetLeds() 2017-09-29 01:27:34 +02:00
László Monda 67c4b413b4 Remove SetLeds() from slave_scheduler.h 2017-09-29 01:21:49 +02:00
László Monda b42fc8b3f1 Remove module declarations that won't be used. 2017-09-29 01:19:02 +02:00
László Monda 8909bb6a16 Convert MODULE_ID_* macros to ModuleId_* enum values. 2017-09-29 01:09:41 +02:00
László Monda d6254b6903 Extract I2C_WATCHDOG_INTERVAL_USEC. 2017-09-29 01:01:29 +02:00
László Monda 7313d8d87e Fix the grammar of watchdog interrupt related comment and don't include specific timeout as it may change later. 2017-09-29 00:58:52 +02:00
László Monda 7d1cecc2b4 Move macros from i2c_watchdog.c to i2c_watchdog.h 2017-09-29 00:54:57 +02:00
László Monda 1889f78b98 Make previousSlaveId and currentSlaveId static. 2017-09-29 00:52:43 +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 508ef870ae Rename I2C_Watchdog*Counter to I2cWatchdog_*Counter. 2017-09-29 00:44:22 +02:00
László Monda 69f3c86185 Rename UhkModuleId_* to UhkModuleDriverId_*. 2017-09-28 23:26:58 +02:00
László Monda 8b180d94b0 No need to zero prevWatchdogCounter because it's zero by default. 2017-09-28 23:23:19 +02:00
László Monda 96eeb97a04 Remove commented out code. The scheduler checks previousStatus and acts accordingly, so things should work out fine. 2017-09-28 23:03:40 +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 5eb82c262a Fix the scheduler by making it maintain previousSlaveId correctly. 2017-09-28 21:44:51 +02:00
László Monda 6c2e806d6d Fix coding style. 2017-09-28 21:16:42 +02:00
László Monda 8136acf63c Add the left add-on and right add-on to the list of slaves to be scheduled. 2017-09-28 21:15:01 +02:00
László Monda 6ec5140eca Add and initialize firmwareI2cAddress and bootloaderI2cAddress to uhk_module_state_t. 2017-09-28 18:10:33 +02:00
László Monda f80a88c419 RX messages are per-module by nature, so instead of using a singleton, add rxMessage to uhk_module_state_t. 2017-09-28 17:17:30 +02:00
László Monda 3fda14df27 Update the coding style of dereference operators. 2017-09-28 17:09:59 +02:00
László Monda ef2c4a1e7f Add uhk_module_state_t containing module variables and phase. Merge uhkModuleTargetStates and uhkModulePhases to uhkModuleStates. 2017-09-28 17:06:56 +02:00
László Monda de21cfc07e Rename uhk_module_state_t to uhk_module_vars_t. 2017-09-28 16:57:46 +02:00
Stephen 9ecf04cf11 Update .travis.yml 2017-09-28 06:38:34 -07:00
László Monda 4666b24c69 Change UsbMouseReport back to extern that I screwed up in ecf1ad2468 2017-09-28 14:13:24 +02:00
László Monda 8b5b224bf3 Compute KEY_STATE_SIZE the right way. 2017-09-28 04:05:44 +02:00
László Monda 9309c1e954 UpperCamelCase rxMessage and txMessage because they're extern variables. 2017-09-28 03:38:44 +02:00
László Monda 8d57968575 Also commit slave_scheduler.c regarding the kStatus_Uhk_NoOp -> kStatus_Uhk_NoTransfer rename that I forgot to commit. 2017-09-28 03:35:28 +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 d578b7aba8 Remove unused variable DisableKeyMatrixScanState. 2017-09-28 03:24:40 +02:00
László Monda e3faa5ade4 Remove extern modifier. 2017-09-28 03:18:18 +02:00
László Monda d844264ad9 Update CONTRIBUTING.md 2017-09-28 03:14:59 +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 41c2556386 Use the static keyword wherever it's valid inside of uhk_module_driver.c 2017-09-28 02:26:56 +02:00
László Monda 5473c102ec Add per-module UHK module phases. 2017-09-28 02:24:28 +02:00
László Monda d43bbbbf51 Not being an extern function, lowerCamelCase uhkModuleTargetStates. 2017-09-28 02:14:40 +02:00
László Monda 9a4c49e9a6 Extract MAX_PWM_BRIGHTNESS. 2017-09-28 01:35:04 +02:00
László Monda d4124d8331 Cache UHK module state variables and only tranfer them when changed. 2017-09-28 01:30:27 +02:00
Stephen Groat 790a2e0a65 Improve OSX dependency management through brew bundle 2017-09-27 16:24:44 -07:00
László Monda 5769f66994 Introduce currentSlave when initializing the slaves. 2017-09-27 00:27:14 +02:00
László Monda 8f830f7d9f Make sure that all slaves are initialized upon startup. 2017-09-27 00:22:28 +02:00
László Monda 145443c65c Fix the computation of KEY_STATE_SIZE and the byte count to memset in BoolBytesToBits() 2017-09-26 20:18:26 +02:00
László Monda 1839be81b6 Improve the description of slots. 2017-09-26 20:08:57 +02:00