• 大小: 2.22MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-11
  • 语言: 其他
  • 标签: FLASH  IAP  

资源简介

对片内flash读写,iap的实现过程。含有具体的过程,简单易懂。

资源截图

代码片段和文件信息

#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\r\n“);
}

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

}
}











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

     文件        248  2015-03-12 11:11  LPC1768_IAP\APP\APP\command\commandConfig.h

     文件       1608  2015-03-03 13:14  LPC1768_IAP\APP\APP\command\CommandCore.c

     文件        239  2015-03-02 15:31  LPC1768_IAP\APP\APP\command\commandCore.h

     文件        739  2015-03-02 15:29  LPC1768_IAP\APP\APP\command\commandFunc.c

     文件        177  2015-03-02 15:31  LPC1768_IAP\APP\APP\command\commandFunc.h

     文件        278  2015-03-11 08:30  LPC1768_IAP\APP\APP\command\commandInclude.h

     文件        262  2015-03-12 11:11  LPC1768_IAP\APP\APP\command\commandList.c

     文件        327  2015-03-02 15:31  LPC1768_IAP\APP\APP\command\commandList.h

     文件      11953  2015-03-02 15:13  LPC1768_IAP\APP\APP\command\commandUtil.c

     文件       1438  2015-03-02 15:19  LPC1768_IAP\APP\APP\command\commandUtil.h

     文件        819  2015-03-02 15:44  LPC1768_IAP\APP\APP\command\使用说明.txt

     文件       1953  2015-03-13 13:48  LPC1768_IAP\APP\APP\iap\iap.c

     文件        338  2015-03-13 13:48  LPC1768_IAP\APP\APP\iap\iap.h

     文件      99832  2013-02-26 10:30  LPC1768_IAP\APP\CMSIS\core_cm3.h

     文件      17146  2013-02-26 10:30  LPC1768_IAP\APP\CMSIS\core_cmFunc.h

     文件      20677  2013-06-14 08:27  LPC1768_IAP\APP\CMSIS\core_cmInstr.h

     文件      38678  2014-09-01 10:22  LPC1768_IAP\APP\CMSIS\LPC17xx.h

     文件      10678  2015-03-12 16:31  LPC1768_IAP\APP\CMSIS\startup_LPC17xx.s

     文件        419  2015-03-12 11:06  LPC1768_IAP\APP\DEVICE\led.c

     文件        133  2015-03-12 11:01  LPC1768_IAP\APP\DEVICE\led.h

     文件       2998  2015-03-12 10:30  LPC1768_IAP\APP\DRIVER\debugSerial.c

     文件        600  2015-03-12 10:28  LPC1768_IAP\APP\DRIVER\debugSerial.h

     文件       3298  2015-03-13 11:45  LPC1768_IAP\APP\DRIVER\flash.c

     文件       3877  2015-03-13 13:42  LPC1768_IAP\APP\DRIVER\flash.h

     文件       2138  2015-03-12 11:24  LPC1768_IAP\APP\DRIVER\sys.c

     文件       4621  2015-01-15 19:05  LPC1768_IAP\APP\DRIVER\sys.h

     文件       1288  2015-01-14 19:10  LPC1768_IAP\APP\DRIVER\sysTick.c

     文件        226  2015-01-14 19:07  LPC1768_IAP\APP\DRIVER\sysTick.h

     文件        309  2015-03-13 14:04  LPC1768_IAP\APP\MAIN\main.c

     文件        201  2015-03-12 11:01  LPC1768_IAP\APP\MAIN\mainInclude.h

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

评论

共有 条评论