flash.c
来自「au1200下的boot代码」· C语言 代码 · 共 27 行
C
27 行
#include "flash.h"
#include "util.h"
struct FlashFileHandle fileHandle;
int flashClose()
{
return 1;
}
int flashOpen(const char* address)
{
fileHandle.start = (char*)stringToInt(address);
fileHandle.current = fileHandle.start;
return 1;
}
int flashRead(void* buffer, int size)
{
memCopy(fileHandle.current, buffer, size);
fileHandle.current += size;
return size;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?