Commit Graph

14 Commits

Author SHA1 Message Date
László Monda
afab1db73c Remove some unused sync I2C calls. 2017-03-18 02:02:56 +01:00
László Monda
3f661bc0ad Completely refactor I2C LED driver initialization from sync to async. 2017-03-18 01:37:13 +01:00
László Monda
a89f0b675f Refactor sync LED driver control register initialization to async. 2017-03-18 01:12:44 +01:00
László Monda
fc0fc4a3f4 Start to implement the fully asynchronous bridge protocol scheduler and use it to transfer key and LED state. 2017-02-03 01:37:25 +01:00
László Monda
0ded50b43a PWM the R_EXT of the LED driver using FTM. 2017-01-13 14:58:31 +01:00
László Monda
f6a8c56f61 Enable the FET to drive LED_PWM at full blast. 2017-01-09 18:57:20 +01:00
László Monda
af1741ae4e Use I2cRead() and I2cWrite() wherever possible. 2017-01-02 19:29:13 +01:00
Gergely Nagy
5ee11c2f8f LEDs: Add a method to set all LEDs to a given brightness
Mostly for testing purposes, but can be used later for backlight up/down stuff,
too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-11 09:57:48 +01:00
Robert Csordas
fc434c7857 Remove keyboard scanning from USB interrupt. Fix initial blink of LEDs when initializing. Coding style fixes. 2016-11-13 15:50:49 +01:00
László Monda
4742a0c661 Initialize clocks where they're actually needed. 2016-10-05 23:12:22 +02:00
László Monda
7b3178a10a Generalize LED driver functions by adding I2C address parameters. 2016-09-26 21:37:29 +02:00
László Monda
7b1f6a37ff Add LED driver related macros instead of using magic numbers. 2016-09-26 21:19:35 +02:00
László Monda
2dd9aa87b0 Name a couple of I2C related variables more intuitively. 2016-09-26 20:33:03 +02:00
László Monda
b280fde8a5 Extract LED driver related functions to led_driver.[ch] 2016-09-26 20:28:12 +02:00