Add gitignore
create motor_controller source files.
This commit is contained in:
22
Core/Inc/motor_controller.h
Normal file
22
Core/Inc/motor_controller.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef MOTOR_CONTROLLER_H
|
||||
#define MOTOR_CONTROLLER_H
|
||||
|
||||
#include "stm32f0xx_hal.h"
|
||||
#include "stm32f0xx_hal_def.h"
|
||||
#include "stm32f0xx_hal_tim.h"
|
||||
|
||||
typedef struct {
|
||||
TIM_HandleTypeDef* Driver_PWM_TIM;
|
||||
uint32_t U_Phase_TIM_Channel;
|
||||
uint32_t V_Phase_TIM_Channel;
|
||||
uint32_t W_Phase_TIM_Channel;
|
||||
}Cont_Mot_Interface_TypeDef;
|
||||
|
||||
typedef struct {
|
||||
Cont_Mot_Interface_TypeDef Motor_Interface;
|
||||
} Motor_TypeDef;
|
||||
|
||||
void BLDC_Init(Cont_Mot_Interface_TypeDef Interface);
|
||||
void BLDC_Loop();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user