From c8dc9e39acc655e034cc548d1675b53abd7251fe Mon Sep 17 00:00:00 2001 From: Daniel Mesham Date: Wed, 23 Sep 2020 13:09:23 +0200 Subject: [PATCH] arch/arm: stm32l4: Fix typo in TIM15 PWM config When configuring TIM15_CH2 as output, we mistakenly referred to TIM12 instead. --- arch/arm/src/stm32l4/stm32l4_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32l4/stm32l4_pwm.c b/arch/arm/src/stm32l4/stm32l4_pwm.c index e3c78b8c164..31a83129497 100644 --- a/arch/arm/src/stm32l4/stm32l4_pwm.c +++ b/arch/arm/src/stm32l4/stm32l4_pwm.c @@ -1126,7 +1126,7 @@ static struct stm32l4_pwmchan_s g_pwm15channels[] = { .channel = 2, .mode = CONFIG_STM32L4_TIM15_CH2MODE, -#ifdef CONFIG_STM32L4_TIM12_CH2OUT +#ifdef CONFIG_STM32L4_TIM15_CH2OUT .out1 = { .in_use = 1,