fatfs v0.02 Jun 01, 2006:

- Added FAT12. Removed unbuffered mode.
- Fixed a problem on small (<32M) patition.
This commit is contained in:
savelij13 committed 2025-09-11 08:53:18 +03:00
1 parent 4f7376e6aa
commit 238747ef97
56 files changed
+424 -336

No files matched your search

+7 -8
View File
@@ -3,6 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="up" title="FatFs" href="../00index_e.html">
<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - f_lseek</title>
</head>
@@ -36,12 +37,10 @@ FRESULT f_lseek (
<dl class="ret">
<dt>FR_OK</dt>
<dd>The function succeeded.</dd>
<dt>FR_ALIGN_ERROR</dt>
<dd>Out of alignment. In unbuffered mode, specified offset must be aligned on 512 byte boundary.</dd>
<dt>FR_RW_ERROR</dt>
<dd>Any error occured in low level disk I/O.</dd>
<dt>FR_INCORRECT_DISK_CHANGE</dt>
<dd>Incorrect disk removal, such as a medium change during any file opend, has been occured.</dd>
<dd>Incorrect disk removal, such as a medium change during any file is opend, has been occured.</dd>
<dt>FR_NOT_ENABLED</dt>
<dd>FatFs module has not been enabled.</dd>
</dl>
@@ -59,15 +58,15 @@ FRESULT f_lseek (
<pre>
// Move to offset of 5000 from top of file.
res = f_lseek(&file, 5000);
if (res) die(res);
// Move to 3000 bytes front of current offset.
// Forward 3000 bytes
res = f_lseek(&file, file.fptr + 3000);
if (res) die(res);
// Move to 2000 bytes back of current offset.
// Rewind 2000 bytes
res = f_lseek(&file, file.fptr - 2000);
if (res) die(res);
// Move to end of file
res = f_lseek(&file, 0xFFFFFFFF);
</pre>
</div>