fix
This commit is contained in:
parent
d79f13f295
commit
bba500f780
@ -11,6 +11,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "stm32f1xx_hal.h"
|
#include "stm32f1xx_hal.h"
|
||||||
|
#include "inverter.h"
|
||||||
|
|
||||||
|
|
||||||
extern TIM_HandleTypeDef htim1;
|
extern TIM_HandleTypeDef htim1;
|
||||||
@ -59,8 +60,8 @@ void inverterBegin() {
|
|||||||
timerSupport[0].bridgePolarityPin = BridgePolarity0_Pin;
|
timerSupport[0].bridgePolarityPin = BridgePolarity0_Pin;
|
||||||
timerSupport[0].irqType = TIM2_IRQn;
|
timerSupport[0].irqType = TIM2_IRQn;
|
||||||
timerSupport[0].channel = TIM_CHANNEL_1;
|
timerSupport[0].channel = TIM_CHANNEL_1;
|
||||||
timerSupport[0].startMarkPort = LED2_PIN_GPIO_Port;
|
timerSupport[0].startMarkPort = LED0_GPIO_Port;
|
||||||
timerSupport[0].startMarkPin = LED2_PIN_Pin;
|
timerSupport[0].startMarkPin = LED0_Pin;
|
||||||
|
|
||||||
timerSupport[1].handle = &htim5;
|
timerSupport[1].handle = &htim5;
|
||||||
timerSupport[1].running = false;
|
timerSupport[1].running = false;
|
||||||
@ -69,8 +70,8 @@ void inverterBegin() {
|
|||||||
timerSupport[1].bridgePolarityPin = BridgePolarity1_Pin;
|
timerSupport[1].bridgePolarityPin = BridgePolarity1_Pin;
|
||||||
timerSupport[1].irqType = TIM5_IRQn;
|
timerSupport[1].irqType = TIM5_IRQn;
|
||||||
timerSupport[1].channel = TIM_CHANNEL_2;
|
timerSupport[1].channel = TIM_CHANNEL_2;
|
||||||
timerSupport[1].startMarkPort = LED3_PIN_GPIO_Port;
|
timerSupport[1].startMarkPort = LED1_GPIO_Port;
|
||||||
timerSupport[1].startMarkPin = LED3_PIN_Pin;
|
timerSupport[1].startMarkPin = LED1_Pin;
|
||||||
|
|
||||||
timerSupport[2].handle = &htim4;
|
timerSupport[2].handle = &htim4;
|
||||||
timerSupport[2].running = false;
|
timerSupport[2].running = false;
|
||||||
@ -79,8 +80,8 @@ void inverterBegin() {
|
|||||||
timerSupport[2].bridgePolarityPin = BridgePolarity2_Pin;
|
timerSupport[2].bridgePolarityPin = BridgePolarity2_Pin;
|
||||||
timerSupport[2].irqType = TIM4_IRQn;
|
timerSupport[2].irqType = TIM4_IRQn;
|
||||||
timerSupport[2].channel = TIM_CHANNEL_1;
|
timerSupport[2].channel = TIM_CHANNEL_1;
|
||||||
timerSupport[2].startMarkPort = LED4_PIN_GPIO_Port;
|
timerSupport[2].startMarkPort = LED2_GPIO_Port;
|
||||||
timerSupport[2].startMarkPin = LED4_PIN_Pin;
|
timerSupport[2].startMarkPin = LED2_Pin;
|
||||||
}
|
}
|
||||||
|
|
||||||
void inverterStart(uint8_t freqOut, direction_t direction) {
|
void inverterStart(uint8_t freqOut, direction_t direction) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user