Build break fix: define PWM_TIM2_CH1CFG for channel 1 PWM
This commit is contained in:
parent
4e3c159145
commit
96d6bc9376
@ -174,7 +174,7 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_STM32_TIM2_CHANNEL1
|
#ifdef CONFIG_STM32_TIM2_CHANNEL1
|
||||||
# ifdef CONFIG_STM32_TIM2_CH1OUT
|
# ifdef CONFIG_STM32_TIM2_CH1OUT
|
||||||
# define PWM_TIM2_CH1CFG GPIO_TIM2_CH1OUT
|
# define PWM_TIM2_CH1CFG GPIO_TIM2_CH1OUT_1
|
||||||
# else
|
# else
|
||||||
# define PWM_TIM2_CH1CFG 0
|
# define PWM_TIM2_CH1CFG 0
|
||||||
# endif
|
# endif
|
||||||
@ -754,7 +754,7 @@
|
|||||||
# elif CONFIG_STM32_TIM2_CHANNEL == 1
|
# elif CONFIG_STM32_TIM2_CHANNEL == 1
|
||||||
# define CONFIG_STM32_TIM2_CHANNEL1 1
|
# define CONFIG_STM32_TIM2_CHANNEL1 1
|
||||||
# define CONFIG_STM32_TIM2_CH1MODE CONFIG_STM32_TIM2_CHMODE
|
# define CONFIG_STM32_TIM2_CH1MODE CONFIG_STM32_TIM2_CHMODE
|
||||||
# define PWM_TIM2_CH1CFG GPIO_TIM2_CH1OUT
|
# define PWM_TIM2_CH1CFG GPIO_TIM2_CH1OUT_1
|
||||||
# elif CONFIG_STM32_TIM2_CHANNEL == 2
|
# elif CONFIG_STM32_TIM2_CHANNEL == 2
|
||||||
# define CONFIG_STM32_TIM2_CHANNEL2 1
|
# define CONFIG_STM32_TIM2_CHANNEL2 1
|
||||||
# define CONFIG_STM32_TIM2_CH2MODE CONFIG_STM32_TIM2_CHMODE
|
# define CONFIG_STM32_TIM2_CH2MODE CONFIG_STM32_TIM2_CHMODE
|
||||||
|
Loading…
Reference in New Issue
Block a user