FatFs R0.15, released November 6, 2022

This commit is contained in:
Christopher Williams
2022-11-08 17:31:20 -07:00
parent ab8c36b6e2
commit 04d5545d67
33 changed files with 1280 additions and 896 deletions
+24 -1
View File
@@ -48,7 +48,30 @@ DWORD get_fattime (void);
<div class="para comp">
<h4>QuickInfo</h4>
<p>This function is not needed when <tt>FF_FS_READONLY == 1</tt> or <tt>FF_FS_NORTC == 1</tt>.</p>
<p>This function is not needed when <tt><a href="config.html#fs_readonly">FF_FS_READONLY</a> == 1</tt> or <tt><a href="config.html#fs_nortc">FF_FS_NORTC</a> == 1</tt>.</p>
</div>
<div class="para use">
<h4>Example</h4>
<pre>
DWORD get_fattime (void)
{
time_t t;
struct tm *stm;
t = time(0);
stm = localtime(&t);
return (DWORD)(stm->tm_year - 80) &lt;&lt; 25 |
(DWORD)(stm->tm_mon + 1) &lt;&lt; 21 |
(DWORD)stm->tm_mday &lt;&lt; 16 |
(DWORD)stm->tm_hour &lt;&lt; 11 |
(DWORD)stm->tm_min &lt;&lt; 5 |
(DWORD)stm->tm_sec &gt;&gt; 1;
}
</pre>
</div>