From bba500f780e9ea82419ad77300bc60696ada5f9a Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 28 Oct 2016 22:11:17 +0200 Subject: [PATCH] fix --- my_src/inverter.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/my_src/inverter.c b/my_src/inverter.c index aba996b..78f21df 100644 --- a/my_src/inverter.c +++ b/my_src/inverter.c @@ -11,6 +11,7 @@ #include #include "stm32f1xx_hal.h" +#include "inverter.h" extern TIM_HandleTypeDef htim1; @@ -59,8 +60,8 @@ void inverterBegin() { timerSupport[0].bridgePolarityPin = BridgePolarity0_Pin; timerSupport[0].irqType = TIM2_IRQn; timerSupport[0].channel = TIM_CHANNEL_1; - timerSupport[0].startMarkPort = LED2_PIN_GPIO_Port; - timerSupport[0].startMarkPin = LED2_PIN_Pin; + timerSupport[0].startMarkPort = LED0_GPIO_Port; + timerSupport[0].startMarkPin = LED0_Pin; timerSupport[1].handle = &htim5; timerSupport[1].running = false; @@ -69,8 +70,8 @@ void inverterBegin() { timerSupport[1].bridgePolarityPin = BridgePolarity1_Pin; timerSupport[1].irqType = TIM5_IRQn; timerSupport[1].channel = TIM_CHANNEL_2; - timerSupport[1].startMarkPort = LED3_PIN_GPIO_Port; - timerSupport[1].startMarkPin = LED3_PIN_Pin; + timerSupport[1].startMarkPort = LED1_GPIO_Port; + timerSupport[1].startMarkPin = LED1_Pin; timerSupport[2].handle = &htim4; timerSupport[2].running = false; @@ -79,8 +80,8 @@ void inverterBegin() { timerSupport[2].bridgePolarityPin = BridgePolarity2_Pin; timerSupport[2].irqType = TIM4_IRQn; timerSupport[2].channel = TIM_CHANNEL_1; - timerSupport[2].startMarkPort = LED4_PIN_GPIO_Port; - timerSupport[2].startMarkPin = LED4_PIN_Pin; + timerSupport[2].startMarkPort = LED2_GPIO_Port; + timerSupport[2].startMarkPin = LED2_Pin; } void inverterStart(uint8_t freqOut, direction_t direction) {