drivers: pwm: nrf: Use HW PWM by default when available
Enable HW PWM driver instead of the SW one on nRF SoCs where the PWM peripheral is present. Default PWM instances are also enabled on Nordic DK boards so that it is possible to build the basic fade_led sample for them without extra adjustments. After the above changes are applied, some configuration alterations in basic samples blink_led and fade_led become no longer needed. These are removed. And the blink_led sample is corrected so that it works with the nRF HW PWM driver as well. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
2e8cdc1e7f
commit
e2b38e02bf
13 changed files with 45 additions and 29 deletions
|
@ -8,8 +8,8 @@
|
|||
|
||||
menuconfig PWM_NRF5_SW
|
||||
bool "Nordic Semiconductor nRF5x series S/W PWM"
|
||||
default y if !PWM_NRFX
|
||||
depends on PWM && SOC_FAMILY_NRF
|
||||
default y
|
||||
help
|
||||
Enable driver to utilize PWM on the Nordic Semiconductor nRF5x series.
|
||||
This implementation provides up to 3 pins using one HF timer, two PPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue