⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kfsdev.c

📁 kfs嵌入式文件系统1.0.1release版 作者:Eagle 来源:http://www.embseek.com 由embseek开发
💻 C
字号:
/*

filename : kfsdev.c

version : 1.0.1 release

author : eagle

web : www.embseek.com

*/
#include "kfsdev.h"

/***************************************
function : kfsdev_read
from_add : address of the data read from
readto_buf : buffer for data read to
buf_len : buffer length
description : read data from storage
***************************************/
void kfsdev_read(u8 * from_add,u8 *readto_buf,u8 buf_len){

	//please use you own read functions
	//请替换成你自己的读取函数

	u8* pto=readto_buf;
	u8* pfrom=from_add;
	u16 i;
	for(i=0;i<buf_len;i++){
		*pto++=*pfrom++;
	}
}

/***************************************
function : kfsdev_write
writeto_add : address of the data to write to
data_buf : buffer of data to write
buf_len : buffer length
description : write data to storage
***************************************/
void kfsdev_write(u8 * writeto_add,u8 *data_buf,u8 buf_len){

	//please use you own write functions
	//请替换成你自己的写入函数

	u8* pto=writeto_add;
	u8* pfrom=data_buf;
	u16 i;
	for(i=0;i<buf_len;i++){
		*pto=*pfrom;
		pto++;
		pfrom++;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -