From 848ee3b5b10d306abf015741b1b5e935f284916e Mon Sep 17 00:00:00 2001 From: tkl Date: Wed, 10 Aug 2016 17:39:39 +0200 Subject: [PATCH] error correction of wrong pwm channel usage in board cfg --- .../board/stm32f4-discovery/include/stm32f4-discovery.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/firmware/arch/stm32f4xx/board/stm32f4-discovery/include/stm32f4-discovery.h b/source/firmware/arch/stm32f4xx/board/stm32f4-discovery/include/stm32f4-discovery.h index ea87330..31d080c 100755 --- a/source/firmware/arch/stm32f4xx/board/stm32f4-discovery/include/stm32f4-discovery.h +++ b/source/firmware/arch/stm32f4xx/board/stm32f4-discovery/include/stm32f4-discovery.h @@ -160,7 +160,7 @@ const struct driver pwm_2 = { &pwm_ch2, }; -// PWM Channel 2 +// PWM Channel 1 static const GPIO_InitTypeDef port_cfg_D12 = { .GPIO_Pin = GPIO_Pin_12, .GPIO_Mode = GPIO_Mode_AF, @@ -190,7 +190,7 @@ static const struct driver pwm_1 = { const struct driver pwm_1 = { #endif DRIVER_TYPE_PWM, - &pwm_ch3, + &pwm_ch1, }; // UART 1