2025-05-06 17:18:00 +08:00
|
|
|
#ifndef __BSP_MOTOR_H__
|
|
|
|
#define __BSP_MOTOR_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
void bsp_InitMotor(void);
|
|
|
|
|
|
|
|
void bsp_AIN1_ON(void);
|
|
|
|
void bsp_AIN1_OFF(void);
|
|
|
|
|
|
|
|
void bsp_AIN2_ON(void);
|
|
|
|
void bsp_AIN2_OFF(void);
|
|
|
|
|
|
|
|
void bsp_BIN1_ON(void);
|
|
|
|
void bsp_BIN1_OFF(void);
|
|
|
|
|
|
|
|
void bsp_BIN2_ON(void);
|
|
|
|
void bsp_BIN2_OFF(void);
|
|
|
|
|
2025-05-18 22:20:08 +08:00
|
|
|
void bsp_changeLeftMotorSpeed(uint16_t Compare);
|
|
|
|
|
|
|
|
void bsp_changeRightMotorSpeed(uint16_t Compare);
|
2025-05-06 17:18:00 +08:00
|
|
|
|
|
|
|
#endif
|