LPC1768IAP+MFC上位机+bootloader+app


LPC1768IAP+MFC上位机+bootloader+app,又看不懂的地方到博客留言
资源截图
代码片段和文件信息
#include “commandCore.h“



//命令处理模块初始化
void Command_Init(u16 ms)
{
//暂时不知道写什么
//如果是定时在中断中处理命令此处就要初始化定时器并写好中断处理程序
}


//扫描命令字符串并调用相应处理函数
void CommandScan(void)
{
u8 commandLength1;
u8 commandLength2;
u8 i = 0j = 0;
//数据满
if((serial_Buffer_Length & 0x8000) == 0x8000)
{
//检测命令不是全为空格
if(Command_Is_Vailed())
{
Command_Copy();//copy命令字符串等待处理
//去除命令头上的空白
Command_Remove_Space_Head();
//去除命令尾巴上的空格
Command_Remove_Space_End();
//去除中间的重复空格
Command_Remove_Space_Inner();
commandLength1 = Command_Find_Space_Postion(1);//获取长度
if(commandLength1 == 0)commandLength1 = commandStringLength;//当第二个空格获取返回0的时候说明没有参数纯命令所以没有空格
for(i = 0; i < COMMAND_NUM; i++)
{
commandLength2 = StringGetLength(commandStringList[i]);
if(commandLength1 == commandLength2)
{
//长度相同比对每个字符
for(j = 0; j < commandLength1; j++)
{
if(commandStringBuffer[j] == commandStringList[i][j])continue;
else break;
}
if(j == commandLength1)//比对成功
{
//调用函数
Command_Proc_Func_Table[i]();
return;
}
}
else
{
//直接长度不同不需要比对了
continue;
}
}
if(i == COMMAND_NUM)
{
//没找到对应命令
printf(“not find command
“);
}

}
else
{
printf(“command can‘t all space
“);
serial_Buffer_Length = 0;
}

}
}











 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        248  2015-03-12 11:11  LPC1768_IAPAPPAPPcommandcommandConfig.h

     文件       1608  2015-03-03 13:14  LPC1768_IAPAPPAPPcommandCommandCore.c

     文件        239  2015-03-02 15:31  LPC1768_IAPAPPAPPcommandcommandCore.h

     文件        739  2015-03-02 15:29  LPC1768_IAPAPPAPPcommandcommandFunc.c

     文件        177  2015-03-02 15:31  LPC1768_IAPAPPAPPcommandcommandFunc.h

     文件        278  2015-03-11 08:30  LPC1768_IAPAPPAPPcommandcommandInclude.h

     文件        262  2015-03-12 11:11  LPC1768_IAPAPPAPPcommandcommandList.c

     文件        327  2015-03-02 15:31  LPC1768_IAPAPPAPPcommandcommandList.h

     文件      11953  2015-03-02 15:13  LPC1768_IAPAPPAPPcommandcommandUtil.c

     文件       1438  2015-03-02 15:19  LPC1768_IAPAPPAPPcommandcommandUtil.h

     文件        819  2015-03-02 15:44  LPC1768_IAPAPPAPPcommand使用说明.txt

     文件       1953  2015-03-13 13:48  LPC1768_IAPAPPAPPiapiap.c

     文件        338  2015-03-13 13:48  LPC1768_IAPAPPAPPiapiap.h

     文件      99832  2013-02-26 10:30  LPC1768_IAPAPPCMSIScore_cm3.h

     文件      17146  2013-02-26 10:30  LPC1768_IAPAPPCMSIScore_cmFunc.h

     文件      20677  2013-06-14 08:27  LPC1768_IAPAPPCMSIScore_cmInstr.h

     文件      38678  2014-09-01 10:22  LPC1768_IAPAPPCMSISLPC17xx.h

     文件      10678  2015-03-12 16:31  LPC1768_IAPAPPCMSISstartup_LPC17xx.s

     文件        419  2015-03-12 11:06  LPC1768_IAPAPPDEVICEled.c

     文件        133  2015-03-12 11:01  LPC1768_IAPAPPDEVICEled.h

     文件       2998  2015-03-12 10:30  LPC1768_IAPAPPDRIVERdebugSerial.c

     文件        600  2015-03-12 10:28  LPC1768_IAPAPPDRIVERdebugSerial.h

     文件       3298  2015-03-13 11:45  LPC1768_IAPAPPDRIVERflash.c

     文件       3877  2015-03-13 13:42  LPC1768_IAPAPPDRIVERflash.h

     文件       2138  2015-03-12 11:24  LPC1768_IAPAPPDRIVERsys.c

     文件       4621  2015-01-15 19:05  LPC1768_IAPAPPDRIVERsys.h

     文件       1288  2015-01-14 19:10  LPC1768_IAPAPPDRIVERsysTick.c

     文件        226  2015-01-14 19:07  LPC1768_IAPAPPDRIVERsysTick.h

     文件        309  2015-03-13 14:04  LPC1768_IAPAPPMAINmain.c

     文件        201  2015-03-12 11:01  LPC1768_IAPAPPMAINmainInclude.h

............此处省略113个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)