aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux/pca9685.c
Commit message (Collapse)AuthorAgeFilesLines
* pca9685: Use move queue for pwm updatesKevin O'Connor2020-12-041-13/+58
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Always pass a string to the DECL_CONSTANT() macroKevin O'Connor2019-03-171-1/+1
| | | | | | | | Make it clear that the name of the constant being defined is a string. When the value being defined is also a string, use a new DECL_CONSTANT_STR() macro. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* linux: Make sure to close fd on analog/pca9685 init failureKevin O'Connor2017-10-141-6/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9685: Fix missing devices_count incrementKevin O'Connor2017-10-131-0/+1
| | | | | | The devices_count was not being incremented on each device add. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9685: Support default valuesKevin O'Connor2017-10-121-21/+31
| | | | | | Allow the pwm pin to have a non-zero default value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* linux: Add support for pca9685 i2c pwm devicesKevin O'Connor2017-09-201-0/+205
Add support for controlling pca9685 PWM drivers using the standard Linux I2C interface. The pca9685 device is found on Replicape boards. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>