uint16_t SRC_Buffer[20] = {
180, 180, 180, 180, 180, /* 1 */
180, 180, 180, 180, 180, /* 2 */
180, 180, 180, 180, 180, /* 3 */
180, 180, 180, 180, 180, /* 4 */
};
uint16_t SRC_Buffer2[32] = {
120, 120, 120, 120, /* 1 */
120, 120, 120, 120, /* 2 */
120, 120, 120, 120, /* 3 */
120, 120, 120, 120, /* 4 */
120, 120, 120, 120, /* 5 */
120, 120, 180, 120, /* 6 */
120, 120, 120, 120, /* 7 */
120, 120, 120, 120, /* 8 */
};
/* TIM1_CH3 PWM --------------------------------------------------------------*/
/* DMA1_Channel5_Total: DMA传输次数,每次传输发送20个脉冲(200KHz,总计100us) */
uint16_t DMA1_Channel5_Total = 0;
/* Flag_DMA1_Channel5_Sart: DMA启动标志,启动后清零 */
uint16_t Flag_DMA1_Channel5_Sart = 0;
/* Flag_TIM1_PWM3_Finish: TIM1_PWM3发送完毕标志,启动后清零,完成后置位 */
uint16_t Flag_TIM1_PWM3_Finish = 1;
/* Select_Motor_Driect: 选档电机运动方向 1: 正转 0: 反转 */
uint16_t Select_Motor_Driect = 1;
/* TIM3_CH1 PWM -----------------------------------------------------------*/
/* DMA1_Channel3_Total: DMA传输次数,每次传输发送20个脉冲(300KHz,总计100us) */
uint16_t DMA1_Channel3_Total = 0;
/* Flag_DMA1_Channel3_Sart: DMA启动标志,启动后清零 */
uint16_t Flag_DMA1_Channel3_Sart = 0;
/* Flag_TIM1_PWM3_Finish: TIM1_PWM3发送完毕标志,启动后清零,完成后置位 */
uint16_t Flag_TIM3_PWM1_Finish = 1;
/* SWitch_Motor_Driect: 换档电机运动方向 1: 正转 0: 反转 */
uint16_t Switch_Motor_Driect = 1;
uint16_t SRC_Buffer[20] = {
180, 180, 180, 180, 180, /* 1 */
180, 180, 180, 180, 180, /* 2 */
180, 180, 180, 180, 180, /* 3 */
180, 180, 180, 180, 180, /* 4 */
};
uint16_t SRC_Buffer2[32] = {
120, 120, 120, 120, /* 1 */
120, 120, 120, 120, /* 2 */
120, 120, 120, 120, /* 3 */
120, 120, 120, 120, /* 4 */
120, 120, 120, 120, /* 5 */
120, 120, 180, 120, /* 6 */
120, 120, 120, 120, /* 7 */
120, 120, 120, 120, /* 8 */
};
/* TIM1_CH3 PWM --------------------------------------------------------------*/
/* DMA1_Channel5_Total: DMA传输次数,每次传输发送20个脉冲(200KHz,总计100us) */
uint16_t DMA1_Channel5_Total = 0;
/* Flag_DMA1_Channel5_Sart: DMA启动标志,启动后清零 */
uint16_t Flag_DMA1_Channel5_Sart = 0;
/* Flag_TIM1_PWM3_Finish: TIM1_PWM3发送完毕标志,启动后清零,完成后置位 */
uint16_t Flag_TIM1_PWM3_Finish = 1;
/* Select_Motor_Driect: 选档电机运动方向 1: 正转 0: 反转 */
uint16_t Select_Motor_Driect = 1;
/* TIM3_CH1 PWM -----------------------------------------------------------*/
/* DMA1_Channel3_Total: DMA传输次数,每次传输发送20个脉冲(300KHz,总计100us) */
uint16_t DMA1_Channel3_Total = 0;
/* Flag_DMA1_Channel3_Sart: DMA启动标志,启动后清零 */
uint16_t Flag_DMA1_Channel3_Sart = 0;
/* Flag_TIM1_PWM3_Finish: TIM1_PWM3发送完毕标志,启动后清零,完成后置位 */
uint16_t Flag_TIM3_PWM1_Finish = 1;
/* SWitch_Motor_Driect: 换档电机运动方向 1: 正转 0: 反转 */
uint16_t Switch_Motor_Driect = 1;
举报