mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arm64/bcm2711/pwm: Fix PWM defconfigs
Fix build error where PWM0 pinout selection checks would still be compiled even when PWM0 was not enabled. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
2330e39546
commit
35354473c6
1 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
/* PWM0 has several options for the channels. */
|
||||
|
||||
#ifdef CONFIG_BCM2711_PWM0
|
||||
#if CONFIG_BCM2711_PWM0_CHAN1_PIN == 12
|
||||
#define BCM2711_PWM0_CHAN1_PIN_ALT BCM_GPIO_FUNC0
|
||||
#elif CONFIG_BCM2711_PWM0_CHAN1_PIN == 18
|
||||
|
|
@ -61,6 +62,7 @@
|
|||
#else
|
||||
#error "Invalid pin selection for PWM0 channel 2!"
|
||||
#endif
|
||||
#endif /* CONFIG_BCM2711_PWM0 */
|
||||
|
||||
/* PWM1 only has one option for the channels */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue