summaryrefslogtreecommitdiff
path: root/fatfs/doc/en/forward.html
diff options
context:
space:
mode:
authorLeo C2016-09-08 20:59:55 +0200
committerLeo C2016-09-08 20:59:55 +0200
commitb30c4e8f1aef96f6fdc93da9f125545f5f74d06e (patch)
treee1f9e4cfcc0c24cfb8f35825d83aa5f878c2717a /fatfs/doc/en/forward.html
parente1deb7c3bc0500aabf5d099adb231f6d1d27f01d (diff)
parent70702af1370e44e32fb2c3c507e4759a187b4fe5 (diff)
downloadz180-stamp-b30c4e8f1aef96f6fdc93da9f125545f5f74d06e.zip
Merge branch 'chan-fatfs' into fatfs-integration
# Conflicts: # .gitignore # fatfs/src/diskio.h # fatfs/src/option/ccsbcs.c # include/avr/ffconf.h # include/integer.h
Diffstat (limited to 'fatfs/doc/en/forward.html')
-rw-r--r--fatfs/doc/en/forward.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/fatfs/doc/en/forward.html b/fatfs/doc/en/forward.html
index 714c48d..eddb051 100644
--- a/fatfs/doc/en/forward.html
+++ b/fatfs/doc/en/forward.html
@@ -45,7 +45,6 @@ FRESULT f_forward (
<a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -54,13 +53,13 @@ FRESULT f_forward (
<div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_forward()</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
+<p>The <tt>f_forward</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_USE_FORWARD == 1</tt> and <tt>_FS_TINY == 1</tt>.</p>
+<p>Available when <tt>_USE_FORWARD == 1</tt>.</p>
</div>
@@ -113,7 +112,7 @@ FRESULT play_file (
if (rc) return rc;
<span class="c">/* Repeat until the file pointer reaches end of the file */</span>
- while (rc == FR_OK &amp;&amp; fil.fptr &lt; fil.fsize) {
+ while (rc == FR_OK &amp;&amp; !f_eof(&amp;fil)) {
<span class="c">/* any other processes... */</span>