#include "mw_motor.h" // #include "bsp_motor.h" #include "tb6612.h" #include /************************************************************************************* * @brief motor drv注册 * @param[in/out] str_motor_drv【参数注释】 * * @warning 【不可重入,阻塞等警告】 * @note 【重大修改】 *************************************************************************************/ void mw_motor_launch(mw_motor_drv_str *str_motor_drv) { str_motor_drv->init = tb6612_init; str_motor_drv->go_ahead = tb6612_go_ahead; str_motor_drv->go_back = tb6612_go_back; str_motor_drv->go_left = tb6612_go_left; str_motor_drv->go_right = tb6612_go_right; str_motor_drv->go_self_rotate = tb6612_go_self_rotate; str_motor_drv->stop = tb6612_stop; str_motor_drv->set_speed = tb6612_change_speed; }