mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 18:16:27 +08: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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user