#include "CommandsDefine.h" #include "ProjectConfig.h" #include "Helper.h" #include "usart.h" /* 获取当前程序是App还是Boot */ /* 请求格式 包起始标识+CMD0x01_Request_RunningAtWhere+[0x00+0x00]+包尾标识 返回格式 包起始标识+CMD0x01_Request_RunningAtWhere+[0x00+0x01]+1Byte的RunningAtWhere+包尾标识. RunningAtWhere 约定:RUNNING_AT_APP 0x77,RUNNING_AT_BOOT 0x11 */ void CMD0x01_Request_RunningAtWhere_process(u8 *pData,u16 dataLen,u8 bIsContentBitInverted_Recv,u8 bIsContentBitInverted_SendBack) { u8 dataBytes=1; USART_WR_BUF[0]=RUNNING_AT_WHERE; USART6_Send(CMD0x01_Request_RunningAtWhere,dataBytes,bIsContentBitInverted_SendBack); }