#ifndef __bsp_protocol_h__ #define __bsp_protocol_h__ #include "main.h" #define DEX_NUM 0 enum _cmd{ CMD_HEART = 0, CMD_MOTION, CMD_UPDATE, }; enum _CMD_MOTION{ MOTION_STOP = 0, MOTION_RUN, MOTION_JUMP, MOTION_DOWN, MOTION_LEFT, MOTION_RIGHT, MOTION_FRONT, MOTION_BACK, NUMBERS_OF_MOTION, }; enum _CMD_UPDATE{ UPDATE_NONE = 0, UPDATE_RUN, UPDATE_BASEINFO, NUMBERS_OF_UPDATE, }; void send_protocol(uint8_t index,uint8_t cmd,uint8_t* dat,uint8_t datLen); #endif