driver/pca9685_pwm_output: bugfixs & support outputting in duty-cycle mode (#21528)

- make it work again
 - also supports Kconfig based clk source selection
 - adapt to recent changes of default PWM limits
 - support outputting in duty-cycle mode
 - i2c addr use use hex representation
 - revert back to common min/max value & move duty-cycle mode to advanced
This commit is contained in:
SalimTerryLi
2023-10-21 12:39:45 -05:00
committed by GitHub
parent 63b5c790b7
commit f68f88b97c
6 changed files with 413 additions and 359 deletions
+2
View File
@@ -16,6 +16,8 @@ CONFIG_DRIVERS_MAGNETOMETER_HMC5883=y
CONFIG_DRIVERS_MAGNETOMETER_ISENTEK_IST8310=y
CONFIG_DRIVERS_MAGNETOMETER_QMC5883L=y
CONFIG_DRIVERS_PCA9685_PWM_OUT=y
CONFIG_PCA9685_USE_EXTERNAL_CRYSTAL=y
CONFIG_PCA9685_EXTERNAL_CRYSTAL_FREQ=25000000
CONFIG_COMMON_RC=y
CONFIG_DRIVERS_RC_INPUT=y
CONFIG_DRIVERS_SMART_BATTERY_BATMON=y