32 lines
864 B
C
32 lines
864 B
C
|
/***********************************************
|
|||
|
<EFBFBD><EFBFBD>˾<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>Ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
Ʒ<EFBFBD>ƣ<EFBFBD>WHEELTEC
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>wheeltec.net
|
|||
|
<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̣<EFBFBD>shop114407458.taobao.com
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ: https://minibalance.aliexpress.com/store/4455017
|
|||
|
<EFBFBD>汾<EFBFBD><EFBFBD>5.7
|
|||
|
<EFBFBD><EFBFBD>ʱ<EFBFBD>䣺2021-04-29
|
|||
|
|
|||
|
|
|||
|
Brand: WHEELTEC
|
|||
|
Website: wheeltec.net
|
|||
|
Taobao shop: shop114407458.taobao.com
|
|||
|
Aliexpress: https://minibalance.aliexpress.com/store/4455017
|
|||
|
Version:5.7
|
|||
|
Update<EFBFBD><EFBFBD>2021-04-29
|
|||
|
|
|||
|
All rights reserved
|
|||
|
***********************************************/
|
|||
|
#ifndef __MOTOR_H
|
|||
|
#define __MOTOR_H
|
|||
|
#include <sys.h>
|
|||
|
#define PWMB TIM1->CCR4 //PA11
|
|||
|
#define BIN2 PBout(12)
|
|||
|
#define BIN1 PBout(13)
|
|||
|
#define AIN2 PBout(15)
|
|||
|
#define AIN1 PBout(14)
|
|||
|
#define PWMA TIM1->CCR1 //PA8
|
|||
|
void MiniBalance_PWM_Init(u16 arr,u16 psc);
|
|||
|
void Motor_Init(void);
|
|||
|
#endif
|