|
发表于 2012-4-5 17:30:25
|
显示全部楼层
需要详细阅读官网中关于pf_write的说明:
File write operation must be done in following sequence.
1.pf_lseek(ofs); read/write pointer must be moved to sector bundary prior to initiate write operation or it will be rounded-down to the sector boundary.
2.pf_write(buff, btw, &bw); Initiate write operation. Write first data to the file.
3.pf_write(buff, btw, &bw); Write next data. Any other file function cannot be used while a write operation is in progress.
4.pf_write(0, 0, &bw); Finalize the write operation. If read/write pointer is not on the sector boundary, left bytes in the sector will be filled with zero.
|
|