You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
205 B

#ifndef __MOTOR_H
#define __MOTOR_H
#include <sys.h>
#define PWMA TIM1->CCR4 //PA11
#define AIN2 PBout(12)
#define AIN1 PBout(14)
void PWM_Init(u16 arr,u16 psc);
void Motor_Init(void);
#endif