From a6163888f3c56123b1db313743c6147ba498732c Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 8 Aug 2014 14:42:07 +0300 Subject: Add third_party libs --- .../FileSystem/FatFs-0.7e/doc/ja/appnote.html | 194 +++++++++++++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/chdir.html | 91 ++++++++++ .../FileSystem/FatFs-0.7e/doc/ja/chdrive.html | 62 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/chmod.html | 97 +++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/close.html | 68 ++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/dinit.html | 45 +++++ .../FileSystem/FatFs-0.7e/doc/ja/dioctl.html | 67 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/dread.html | 58 ++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/dstat.html | 47 +++++ .../FileSystem/FatFs-0.7e/doc/ja/dwrite.html | 66 +++++++ .../FileSystem/FatFs-0.7e/doc/ja/fattime.html | 50 ++++++ .../FileSystem/FatFs-0.7e/doc/ja/filename.html | 67 +++++++ .../FileSystem/FatFs-0.7e/doc/ja/forward.html | 141 +++++++++++++++ .../FileSystem/FatFs-0.7e/doc/ja/getfree.html | 101 +++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/gets.html | 63 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/lseek.html | 110 ++++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/mkdir.html | 89 ++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/mkfs.html | 78 +++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/mount.html | 65 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/open.html | 144 +++++++++++++++ .../FileSystem/FatFs-0.7e/doc/ja/opendir.html | 79 +++++++++ .../FileSystem/FatFs-0.7e/doc/ja/printf.html | 82 +++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/putc.html | 60 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/puts.html | 60 +++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/read.html | 79 +++++++++ .../FileSystem/FatFs-0.7e/doc/ja/readdir.html | 124 +++++++++++++ .../FileSystem/FatFs-0.7e/doc/ja/rename.html | 93 ++++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/sdir.html | 36 ++++ .../FileSystem/FatFs-0.7e/doc/ja/sfatfs.html | 51 ++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/sfile.html | 41 +++++ .../FileSystem/FatFs-0.7e/doc/ja/sfileinfo.html | 69 ++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/stat.html | 80 +++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/sync.html | 68 ++++++++ .../FileSystem/FatFs-0.7e/doc/ja/truncate.html | 71 ++++++++ .../FileSystem/FatFs-0.7e/doc/ja/unlink.html | 76 ++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/utime.html | 83 +++++++++ .../Common/FileSystem/FatFs-0.7e/doc/ja/write.html | 79 +++++++++ 37 files changed, 2934 insertions(+) create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/appnote.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdir.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdrive.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chmod.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/close.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dinit.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dioctl.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dread.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dstat.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dwrite.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/fattime.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/filename.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/forward.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/getfree.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/gets.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/lseek.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkdir.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkfs.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mount.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/open.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/opendir.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/printf.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/putc.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/puts.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/read.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/readdir.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/rename.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sdir.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfatfs.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfile.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfileinfo.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/stat.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sync.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/truncate.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/unlink.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/utime.html create mode 100644 third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/write.html (limited to 'third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja') diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/appnote.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/appnote.html new file mode 100644 index 0000000..216872f --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/appnote.html @@ -0,0 +1,194 @@ + + + + + + + +FatFsモジュール アプリケーション・ノート + + + +

FatFsモジュール アプリケーション・ノート

+
+ +
+

ポーティングの際に配慮すべきこと

+

FatFsモジュールは移植性に関して次の点を前提としています。

+ +
+ +
+

メモリ使用量 (R0.07e)

+ + + + + + + + + + + +
AVRH8/300HPICTLCS-870/CV850ESSH2ARM7TDMIx86
CompilerWinAVR(gcc)CH38C30(gcc)CC870CCA850SHCWinARM(gcc)VC6
_WORD_ACCESS10011001
text (Full, R/W)1219410559109241522976868727105647342
text (Min, R/W)79886903710899604884565165444764
text (Full, R/O)55324753502067603462377746243316
text (Min, R/O)40403631373650832556290732842510
bssD*2 + 2D*4 + 2D*2 + 2D*2 + 2D*4 + 2D*4 + 2D*4 + 2D*4 + 2
Work area
(_FS_TINY == 0)
D*560 +
F*544
D*560 +
F*550
D*560 +
F*544
D*560 +
F*550
D*560 +
F*550
D*560 +
F*550
D*560 +
F*550
Work area
(_FS_TINY == 1)
D*560 +
F*32
D*560 +
F*36
D*560 +
F*32
D*560 +
F*32
D*560 +
F*36
D*560 +
F*36
D*560 +
F*36
D*560 +
F*36
+

上の表にいくつかのターゲットにおけるメモリ使用量の例を示します。テスト時の構成オプションは次の通りです。数値の単位はバイトで、Dは論理ドライブ数、Fは同時オープン・ファイル数を示します。コンパイラの最適化オプションはコード・サイズとしています。

+
+_FS_READONLY     0 (R/W), 1 (R/O)
+_FS_MINIMIZE     0 (Full function), 3 (Minimized function)
+_USE_STRFUNC     0 (Disable string functions)
+_USE_MKFS        0 (Disable f_mkfs function)
+_USE_FORWARD     0 (Disable f_forward function)
+_CODE_PAGE       932 (Japanese Shift-JIS)
+_USE_LFN         0 (Disable LFN)
+_LFN_UNICODE     0 (Disable Unicode API)
+_MAX_SS          512 (Single sector size)
+_FS_RPATH        0 (Disable relative path)
+_MULTI_PARTITION 0 (Single partition per drive)
+_FS_REENTRANT    0 (Disable reentrancy)
+
+
+ +
+

モジュール・サイズの縮小

+

次の表は構成オプションの設定値によりどの機能が削除されるかを示します。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Function_FS_MINIMIZE_FS_READONLY_USE_STRFUNC_FS_RPATH_USE_MKFS_USE_FORWARD
12310000
f_mount
f_open
f_close
f_read
f_writex
f_syncx
f_lseekx
f_opendirxx
f_readdirxx
f_statxxx
f_getfreexxxx
f_truncatexxxx
f_unlinkxxxx
f_mkdirxxxx
f_chmodxxxx
f_utimexxxx
f_renamexxxx
f_chdirx
f_chdrivex
f_mkfsxx
f_forwardx
f_putcxx
f_putsxx
f_printfxx
f_getsx
+
+ +
+

長いファイル名

+

FatFsモジュールはR0.07から長いファイル名(LFN)をサポートしました。ファイルに付けられた2つの異なる名前(短いファル名と長いファイル名)は、f_readdir関数を除くファイル操作関数において透過です。LFN機能を有効にするには、_USE_LFNを1または2に設定し、Unicode変換関数 ff_convert, ff_wtoupper をプロジェクトに追加します。これらの関数は、cc*.cに含まれています。LFN機能は、加えてある程度のワーク・エリア(LFN操作バッファ)を必要とします。バッファ長は使用できるメモリに応じて_MAX_LFNオプションで構成されることができます。LFNの長さは最大255文字に達するので、LFN完全対応のためには_MAX_LFNは255に設定されるべきです。与えられたファイル名に対してバッファ長が不足した場合、ファイル関数はFR_INVALID_NAMEで失敗します。

+

LFN機能をリエントラント構成で使用する場合は、_USE_LFNは2に設定されなければなりません。この場合、ファイル関数はバッファをスタックに確保します。バッファ・サイズは、(_MAX_LFN + 1) * 2バイトになるので、呼び出し側スタックのサイズはそれを考慮した十分なサイズでなければなりません。

+ + + + + + + + +
LFN cfg on ARM7
コードページROMサイズ[bytes]
SBCS+3721
932(Shift-JIS)+62609
936(GBK)+177797
949(Korean)+139857
950(Big5)+111497
+

LFNを有効にすると、選択されたコード・ページに応じてモジュール・サイズが増大されます。右の表に各コード・ページにおけるLFNを有効にしたときのモジュール・サイズの違いを示します。私たち日本人、中国人および韓国人は数万の文字を持ちます。不幸なことに、それは巨大なOEM-Unicode相互変換テーブルを要求し、モジュール・サイズは劇的に増大されます。その結果、LFNを有効にしたFatFsモジュールは、AVRを含む殆どの8ビット・マイコンにインプリメントされることができません。これは長い間私がLFNをインプリメントすることに興味を持ってこなかった理由です。

+

注: FATファイル・システム上のLFN機能はマイクロソフト社の特許です。商用製品でそれを有効にするときは、最終仕向地によってはライセンスが必要かも知れません。

+
+ +
+

リエントランシー

+

互いに異なるボリューム(論理ドライブ)に対するファイル操作は、常に同時平行に動作できます。同じボリュームに対してはデフォルトではリエントラントではありませんが、_FS_REENTRANTオプションでリエントラントにすることもできます。この場合、OS依存の同期オブジェクト操作関数 ff_cre_syncobj, ff_del_syncobj, ff_req_grant と ff_rel_grant もまたプロジェクトに追加されなければなりません。サンプル・コードと解説はsyncobj.cにあります。

+

あるタスクがボリュームを使用中に他のタスクからそのボリュームに対するファイル関数が呼び出されると、そのアクセスは先のタスクがファイル関数を抜けるまでブロックされます。もし、待ち時間が_TIMEOUTで指定された期間を越すと、その関数はFR_TIMEOUTでアボートします。いくつかのRTOSではタイムアウト機能はサポートされないかも知れません。

+

ひとつの例外がf_mountとf_mkfs関数にあります。これらの関数は同じボリュームに対してリエントラントではありません。これらの関数を使用するときは、アプリケーション・レベルで排他制御しなければなりません。

+

注: このセクションはFatFsモジュールそれ自体のリエントランシーについて説明しています。ディスクI/Oモジュールのリエントランシーに関しては何の前提もありません。

+
+ +
+

多重ファイル・アクセス

+

FatFsモジュールでは多重アクセス機能はサポートされません。ファイルに対する多重アクセスは、そのアクセス・モードによって制限されます。一つのファイルに対する多重オープンは、それらが全てリード・モードのときに限って許可されます。書き込みモードを含む多重オープン、また開かれているファイルに対するリネームや消去を行ってはなりません。さもないと、そのボリュームのFAT構造が破壊される可能性があります。

+
+ +
+

効率的なファイル・アクセス

+

小規模な組込システムでのファイルの読み書きにおける効率の良いアクセスのため、アプリケーション・プログラマはFatFsモジュールの中でどのような処理が行われているか考慮すべきです。ディスク上のデータはf_read関数により次のシーケンスで転送されます。

+

図1. セクタ・ミスアラインド・リード (ショート)
+fig.1 +

+

図2. セクタ・ミスアラインド・リード (ロング)
+fig.2 +

+

図3. セクタ・アラインド・リード
+fig.3 +

+

ファイルI/Oバッファはセクタの一部のデータを読み書きするためのセクタ・バッファを意味します。セクタ・バッファは、それぞれのファイル・オブジェクト内のプライベート・セクタ・バッファまたはファイル・システム・オブジェクト内の共有セクタ・バッファのどちらかです。バッファ構成オプションの_FS_TINYは、データ転送にどちらを使うかを決定します。タイニー・バッファ(1)が選択されるとデータ・メモリの消費はそれぞれのファイル・オブジェクトで512バイト減少されます。この場合、FatFsモジュールはファイル・データの転送とFAT/ディレクトリ・アクセスにファイル・システム・オブジェクト内のセクタ・バッファだけを使用します。タイニー・バッファの欠点は、セクタ・バッファにキャッシュされたFATデータがファイル・データの転送により失われ、クラスタ境界の毎にリロードされなければならないことです。でも、悪くない性能と少ないメモリ消費の視点から多くのアプリケーションに適するでしょう。

+

図1はセクタの一部のデータがファイルI/Oバッファを経由で転送されることを示します。図2に示される長いデータの転送では、転送データの中間の1セクタまたはそれ以上のセクタにまたがる転送データがアプリケーション・バッファに直接転送されています。図3は転送データ全体がセクタ境界にアライメントされている場合を示しています。この場合、ファイルI/Oバッファは使用されません。直接転送においては最大の範囲のセクタがdisk_read関数で一度に読み込まれますが、クラスタ境界を越えるマルチ・セクタ転送はそれが隣接であっても行われません。

+

このように、セクタにアライメントしたファイルの読み書きへの配慮はバッファ経由のデータ転送を避け、読み書き性能は改善されるでしょう。その効果に加え、タイニー構成でキャッシュされたFATデータがファイル・データの転送によりフラッシュされず、非タイニー構成と同じ性能を小さなメモリ・フットプリントで達成できます。

+
+ +
+

クリチカル・セクション

+

ディスク上のFAT構造を操作している途中で、停電、不正なメディアの取り外し、回復不能なデータ・エラー等の障害が発生すると、処理が中途半端な状態で中断され、その結果としてFAT構造が破壊される可能性があります。次にFatFsモジュールにおけるクリチカル・セクションと、その間の障害により起きうるエラーの状態を示します。

+
+図4. 長いクリチカル・セクション
+fig.4 +
+
+図5. 最小化したクリチカル・セクション
+fig.5 +
+
+

赤で示したセクションを実行中に障害が発生した場合、クロス・リンクが発生して操作対象のファイル・ディレクトリが失われる可能性があります。黄色で示したセクションを実行中に障害が発生した場合、つぎのうちいずれかまたは複数の結果が生じる可能性があります。

+ +

いずれも書き込み中や操作対象でないファイルには影響はありません。これらのクリチカル・セクションは、ファイルを書き込みモードで開いている時間を最小限にするか、f_sync()を適宜使用することで図5のようにリスクを最小化することができます。

+
+ +
+

日本語ファイル名の大文字変換

+

CP932(Shift_JIS)でかつ非LFN構成のときは、拡張文字の小文字(2バイト英字・キリル文字・ギリシャ文字)に対して大文字変換を行わず、小文字のままSFNエントリに記録・検索されます。これは日本語MSDOSと同じ仕様となります。このため、全角小文字を含むファイルを作成すると、NT系Windowsでそのファイルを開けなくなります。LFN構成では大文字変換を行います(NT系Windows仕様)。

+
+ +
+

Unicode入出力への対応

+

ファイル関数のファイル名入出力はデフォルトでは OEMコードですが、これをUnicodeに切り替えることもできます。詳細は、ファイル名を参照してください。

+
+ +
+

FatFsのライセンスについて

+

ソース・ファイルのヘッダにライセンス条件が記述されているので、利用の際はそれに従うこと。英語を読めない方のために以下に日本語訳を示しておきます。

+
/*----------------------------------------------------------------------------/
+/  FatFs - FAT file system module  R0.07e                    (C)ChaN, 2009
+/-----------------------------------------------------------------------------/
+/ FatFsモジュールは、小規模な組み込みシステム向けの汎用FATファイルシステム・
+/ モジュールです。これはフリー・ソフトウェアとして、教育・研究・開発のために
+/ 以下のライセンス・ポリシーの下で公開されています。
+/
+/  Copyright (C) 2009, ChaN, all right reserved.
+/
+/ * FatFsモジュールはフリー・ソフトウェアであり、また無保証です。
+/ * 用途に制限はありません。あなたの責任の下において、個人的・非営利的な
+/   ものから商用製品の開発に及ぶ目的に使用・改変・再配布することができます。
+/ * ソース・コードを再配布するときは、上記の著作権表示を保持しなければなりません。
+/
+/-----------------------------------------------------------------------------/
+

要するにFatFsはタダで自由に使えるということです。ソース・コードを再配布するときは、このブロックをそのまま保持しておくこと。このようにFatFsはBSDライクなライセンスとしていますが、一つ大きな違いがあります。特に組み込み用途での利用価値を高めるため、バイナリ形式(ソース・コードを含まない形式全て)での再配布については、条件は設けていません。その場合は、FatFsおよびそのライセンス文書についてはドキュメントに明記してもしなくてもかまいません。もちろんGNU GPLプロジェクトとも共存可能です。何らかの変更を加えて再配布する際は、他のライセンス(GNU GPLかBSDライセンス)に変更することも可能です。

+
+ +

戻る

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdir.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdir.html new file mode 100644 index 0000000..6a72931 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdir.html @@ -0,0 +1,91 @@ + + + + + + + +FatFs - f_chdir + + + + +
+

f_chdir

+

JgEfBNgύX܂B

+
+FRESULT f_chdir (
+  const XCHAR* Path /* fBNgւ̃|C^ */
+);
+
+
+ +
+

+
+
Path
+
ړΏۂ̃fBNgpX̓'\0'ŏI镶w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
t@C‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

f_chdir֐͊e{[̃JgEfBNgύX܂BJgEfBNg̓t@CEVXeEIuWFNg̏sꂽƂA[gEfBNgɐݒ肳܂BJgEfBNǵAt@CEVXeEIuWFNgɋL^邽߁Ã{[gpSẴ^XNɑ΂ĉe^܂B

+
+ + +
+

Ή

+

_FS_RPATH == 1̂ƂɎgp”\ƂȂ܂B

+
+ + +
+

TvER[h

+
+    // JgEhCũJgEfBNgύX ([gdir1)
+    f_chdir("/dir1");
+
+    // hCu2̃JgEfBNgύX (efBNg)
+    f_chdir("2:..");
+
+
+ +
+

Q

+

f_chdrive

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdrive.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdrive.html new file mode 100644 index 0000000..cd0f31b --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chdrive.html @@ -0,0 +1,62 @@ + + + + + + + +FatFs - f_chdrive + + + + +
+

f_chdrive

+

JgEhCuύX܂B

+
+FRESULT f_chdrive (
+  BYTE Drive /* _hCuԍ */
+);
+
+
+ +
+

+
+
Drive
+
JgEhCuɐݒ肷_hCuԍw肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
+
+ + +
+

+

f_chdrive֐̓JgEhCuύX܂BVXeN̏l0łB̐ݒFatFsW[̐ÓIϐɋL^邽߁ASẴ^XNɑ΂ĉe^܂B

+
+ + +
+

Ή

+

_FS_RPATH == 1̂ƂɎgp”\ƂȂ܂B

+
+ + +
+

Q

+

f_chdir

+
+ +

Return

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chmod.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chmod.html new file mode 100644 index 0000000..34fd695 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/chmod.html @@ -0,0 +1,97 @@ + + + + + + + +FatFs - f_chmod + + + + +
+

f_chmod

+

t@C܂̓fBNg̑ύX܂B

+
+FRESULT f_chmod (
+  const XCHAR* FileName, /* t@C܂̓fBNgւ̃|C^ */
+  BYTE Attribute,        /* ݒl */
+  BYTE AttributeMask     /* ύX}XN */
+);
+
+
+ +
+

+
+
FileName
+
ύXΏۂ̃t@C܂̓fBNgpX̓'\0'ŏI镶w肵܂B
+
Attribute
+
ݒ肷鑮Bw”\ȑ͎̒ʂŁȂgݍ킹Ŏw肵܂Bw肳Ȃ͉܂B
+ + + + + + +
lӖ
AM_RDO[hEI[
AM_ARCA[JCu
AM_SYSVXe
AM_HIDqhD
+
+
AttributeMask
+
ύX鑮̃}XNBw肵ݒ܂͉Aw肳Ȃ͏Ԃێ܂BAttributeƓlg܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
t@C‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

t@C܂̓fBNg̑ύX܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂Ƃgp”\łB

+
+ + +
+

gp

+
+    /* [hI[ZbgAA[JCuNAȂ͕ύXȂ */
+    f_chmod("file.txt", AM_RDO, AM_RDO | AM_ARC);
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/close.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/close.html new file mode 100644 index 0000000..dfa5eec --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/close.html @@ -0,0 +1,68 @@ + + + + + + + +FatFs - f_close + + + + +
+

f_close

+

t@C‚܂B

+
+FRESULT f_close (
+  FIL* FileObject     /* t@CEIuWFNgւ̃|C^ */
+);
+
+
+ +
+

+
+
FileObject
+
‚悤Ƃt@C̃t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CEIuWFNgB
+
+
+ + +
+

+

t@C‚܂B݂̍sꂽt@C̏ꍇALbVꂽԁiR/Wobt@̃f[^AύXꂽFATfBNgځj̓fBXNɏ߂܂B֐IƁÃt@CEIuWFNg͖ɂȂÃł܂Bǂݍݐp[hŊJꂽt@CEIuWFNǵÅ֐ɂN[Yoɔj邱Ƃł܂B

+
+ + +
+

Ή

+

SĂ̍\Ŏgp”\łB

+
+ + +
+

Q

+f_open, f_read, f_write, f_sync, FIL, FATFS +
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dinit.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dinit.html new file mode 100644 index 0000000..4cba323 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dinit.html @@ -0,0 +1,45 @@ + + + + + + + +FatFs - disk_initialize + + + + +
+

disk_initialize

+

fBXNEhCu܂B

+
+DSTATUS disk_initialize (
+  BYTE Drive      /* hCuԍ */
+);
+
+
+ +
+

+
+
Drive
+
镨hCuԍ(0-9)w肵܂B
+
+
+ + +
+

߂l

+

̊֐͖߂lƂăfBXNEXe[^XԂ܂BfBXNEXe[^X̏ڍׂɊւĂdisk_status()QƂĂB

+
+ +
+

+

fBXNEhCu܂B֐ƁA߂lSTA_NOINITtONA܂B

+

FatFsW[́A}EgɂKvɉĂ̊֐Ăяo܂BFatFsW[gp̓AvP[V炱̊֐ĂяoĂ͂Ȃ܂BȂFAT\j󂳂”\܂BG[ɂďKvȂƂ́Af_mount()gp܂B

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dioctl.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dioctl.html new file mode 100644 index 0000000..af5f4b3 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dioctl.html @@ -0,0 +1,67 @@ + + + + + + + +FatFs - disk_ioctl + + + + +
+

disk_ioctl

+

ZN^̓ǂݏȊÕfBXNEhCûɑ΂lXȐ܂B

+
+DRESULT disk_ioctl (
+  BYTE Drive,      /* hCuԍ */
+  BYTE Command,    /* R}h */
+  void* Buffer     /* f[^󂯓nobt@ */
+);
+
+
+ +
+

+
+
Drive
+
hCuԍ(0-9)w肵܂B
+
Command
+
R}hER[hw肵܂B
+
Buffer
+
R}hɈˑp[^󂷂obt@w|C^w肵܂Bobt@gpȂR}h̏ꍇ́ANULLw肵܂B
+
+
+ +
+

߂l

+
+
RES_OK (0)
+
IB
+
RES_ERROR
+
炩̃G[B
+
RES_PARERR
+
R}hsB
+
RES_NOTRDY
+
hCu”\Ԃł͂ȂA܂͏ĂȂB
+
+
+ +
+

+

hCu̎ނɂT|[gR}h͈قȂ܂AFatFsW[ł́A̔ėpR}ĥݎgpAhCu̎ނɈˑ͍s܂B

+

̊֐̓[hEI[\ł͕KvƂ܂B

+ + + + + + +
R}h
CTRL_SYNChCuf[^݂̏̂҂܂BCgEobNELbVꍇ́A܂ĂȂf[^𑦎߂܂B
GET_SECTOR_SIZEBuffer̎wWORDϐɃhCũZN^ETCYԂ܂B_MAX_SS1024ȏ̂ƂKvƂ܂B
GET_SECTOR_COUNTBuffer̎wDWORDϐɃhCȗZN^Ԃ܂Bf_mkfsł̂ݎgpB
GET_BLOCK_SIZEBuffer̎wDWORDϐɃEA[̏ubNTCYZN^PʂŕԂ܂Bsȏꍇ܂HDDł1Ԃ܂Bf_mkfsł̂ݎgpB
+
+ + +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dread.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dread.html new file mode 100644 index 0000000..5baf770 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dread.html @@ -0,0 +1,58 @@ + + + + + + + +FatFs - disk_read + + + + +
+

disk_read

+

fBXNZN^ǂݏo܂B

+
+DRESULT disk_read (
+  BYTE Drive,          /* hCuԍ */
+  BYTE* Buffer,        /* ǂݏoobt@ւ̃|C^ */
+  DWORD SectorNumber,  /* ǂݏoJnZN^ԍ */
+  BYTE SectorCount     /* ǂݏoZN^ */
+);
+
+
+ +
+

+
+
Drive
+
hCuԍ(0-9)w肵܂B
+
Buffer
+
fBXNǂݏof[^i[oCgzŁAǂݏooCg̃TCYKvłBAhX̓ACgĂƂ͌܂B
+
SectorNumber
+
ǂݏoJnZN^ԍBLBAŎw肵܂B
+
SectorCount
+
ǂݏoZN^B 1`255͈̔͂Őݒ肵܂
+
+
+ + +
+

߂l

+
+
RES_OK (0)
+
IB
+
RES_ERROR
+
ǂݍݒɃG[Ả񕜂ɂsB
+
RES_PARERR
+
p[^sB
+
RES_NOTRDY
+
hCu”\Ԃł͂ȂiĂȂjB
+
+
+ + +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dstat.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dstat.html new file mode 100644 index 0000000..9e04ccb --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dstat.html @@ -0,0 +1,47 @@ + + + + + + + +FatFs - disk_status + + + + +
+

disk_status

+

fBXNEhCȕԂ擾܂B

+
+DSTATUS disk_status (
+  BYTE Drive           /* hCuԍ */
+);
+
+
+ +
+

+
+
Drive
+
Xe[^X擾镨hCuԍw肵܂B
+
+
+ + +
+

߂l

+

hCȕԂ̃tȎgݍ킹̒lŕԂ܂B

+
+
STA_NOINIT
+
hCuĂȂƂtOBVXeEZbg⃁fBA̎OŃZbgAdisk_initialize() ̐IŃNAAsŃZbg܂B
+
STA_NODISK
+
fBAZbgĂȂƂtOBfBAOĂԂ̓ZbgAfBAZbgĂԂ̓NA܂BŒfBXNł͏ɃNAĂ܂B
+
STA_PROTECTED
+
fBACgEveNgĂ邱ƂtOBCgEveNg@\T|[gȂfBAł͏ɃNAĂ܂B
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dwrite.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dwrite.html new file mode 100644 index 0000000..821989c --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/dwrite.html @@ -0,0 +1,66 @@ + + + + + + + +FatFs - disk_write + + + + +
+

disk_write

+

fBXNɃf[^݂܂B

+
+DRESULT disk_write (
+  BYTE Drive,          /* hCuԍ */
+  const BYTE* Buffer,  /* ރf[^ւ̃|C^ */
+  DWORD SectorNumber,  /* ݊JnZN^ԍ */
+  BYTE SectorCount     /* ݃ZN^ */
+);
+
+
+ +
+

+
+
Drive
+
hCuԍ(0-9)w肵܂B
+
Buffer
+
fBXNɏރoCgzw肵܂BAhX̓ACgĂƂ͌܂B
+
SectorNumber
+
݂JnZN^ԍBLBAŎw肵܂B
+
SectorCount
+
ރZN^B 1`255Őݒ肵܂B
+
+
+ + +
+

߂l

+
+
RES_OK (0)
+
IB
+
RES_ERROR
+
ݒɃG[Ả񕜂ɂsB
+
RES_WRPRT
+
fBA݋֎~ԁB
+
RES_PARERR
+
p[^sB
+
RES_NOTRDY
+
hCu”\Ԃł͂ȂiĂȂjB
+
+
+ + +
+

+

[hEI[\ł͂̊֐͕KvƂ܂B

+
+ + +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/fattime.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/fattime.html new file mode 100644 index 0000000..d627a12 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/fattime.html @@ -0,0 +1,50 @@ + + + + + + + +FatFs - get_fattime + + + + +
+

get_fattime

+

ݎ擾܂B

+
+DWORD get_fattime (void);
+
+
+ + +
+

߂l

+

݂̃[JE^CDWORDlɃpbNĕԂ܂BrbgEtB[h͎Ɏ悤ɂȂ܂B

+
+
bit31:25
+
1980NN_ƂN 0..127 œ܂B
+
bit24:21
+
1..12 ̒lœ܂B
+
bit20:16
+
1..31 ̒lœ܂B
+
bit15:11
+
0..23 ̒lœ܂B
+
bit10:5
+
0..59 ̒lœ܂B
+
bit4:0
+
b/2 0..29 ̒lœ܂B
+
+
+ + +
+

+

RTCT|[gȂVXełA炩̓tƂėLȒlԂȂ΂Ȃ܂B0ԂꍇÃt@C͓t܂B[hEI[\ł͂̊֐͕KvƂ܂B

+
+ + +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/filename.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/filename.html new file mode 100644 index 0000000..0e9fd99 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/filename.html @@ -0,0 +1,67 @@ + + + + + + + +FatFs - ファイル・ディレクトリの指定方法 + + + +
+

ファイル・ディレクトリの指定方法

+

FatFsモジュールでのファイル、ディレクトリ、ドライブの指定方法はDOS/Windowsとほぼ同じです。パス名のフォーマットは次の通りです。

+
+ "[論理ドライブ番号:][/]ディレクトリ名/ファイル名"
+
+

FatFsモジュールは長いファイル名(LFN)および8.3形式ファイル名(SFN)に対応しています。LFNは、(_USE_LFN > 0)のとき使用可能になります。DOS/Windowsとの違いは、ディレクトリ・セパレータと論理ドライブ番号の指定です。ディレクトリ・セパレータには / または \ を使用します。論理ドライブ番号は、'0'~'9'の一文字の数字とコロンで指定し、省略した場合はデフォルト・ドライブ(0またはカレント・ドライブ)が選択されます。パス名に先行あるいは中に含まれるスペースは、LFN構成では名前の一部として有効ですが、非LFN構成ではパス名の終端として認識されます。

+

標準構成(_FS_RPATH == 0)のときは、全てのオブジェクトがルート・ディレクトリから辿る絶対パスで指定されます。OS指向なカレント・ディレクトリという概念は無く、またドット・ディレクトリ("."や"..")は使用できません。パス名先頭のセパレータは無視されます。デフォルト・ドライブ番号は常に0になります。

+

相対パスを有効(_FS_RPATH == 1)にしたときは、先行するセパレータの有無によって検索開始ディレクトリが変わり、セパレータがある場合はルート・ディレクトリから、無い場合はf_chdir関数で設定されるカレント・ディレクトリからになります。またパス名にドット・ディレクトリが使用できます。デフォルト・ドライブ番号はf_chdrive関数で設定された値となります。

+ + + + + + + + + + + + + +
パス名_FS_RPATH == 0_FS_RPATH == 1
file.txtドライブ0のルート・ディレクトリ下のファイルカレント・ドライブのカレント・ディレクトリ下のファイル
/file.txtドライブ0のルート・ディレクトリ下のファイルカレント・ドライブのルート・ディレクトリ下のファイル
ドライブ0のルート・ディレクトリカレント・ドライブのカレント・ディレクトリ
2:ドライブ2のルート・ディレクトリドライブ2のカレント・ディレクトリ
2:file1.txtドライブ2のルート・ディレクトリ下のファイルドライブ2のカレント・ディレクトリ下のファイル
2:/ドライブ2のルート・ディレクトリドライブ2のルート・ディレクトリ
../file.txt無効親ディレクトリ下のファイル
.無効このディレクトリ
..無効カレント・ディレクトリの親ディレクトリ
dir1/..無効カレント・ディレクトリ
/..無効無効(ルート・ディレクトリではドット名は使用不可)
+
+ +


+
+

Unicode API

+

ファイル関数の入出力のうちファイル名やパス名を指定する引数の型は、XCHARで定義されていますが、これはcharのエリアスになっています。そして、_CODE_PAGEで指定される OEMコード(SBCSまたはDBCS)の文字列として扱われます。ファイル名入出力をUnicodeとする構成(LFN構成で、かつ_LFN_UNICODEを 1)にしたときは、XCHARはワイド文字(unsigned short)に切り替わり、パス名にUnicodeを使用するようになります。これにより LFNフル対応となり、OEMコードにない文字(たとえば ✝☪✡☸☭など)も使用できます。

+
+ +


+
+

論理ドライブ(ボリューム)と物理ドライブ(ディスク装置)の対応

+

デフォルトの構成では、それぞれの論理ドライブは同じ番号の物理ドライブに1:1で結びつけられていて、物理ドライブの先頭の区画がマウントされます。_MULTI_PARTITIONに 1を指定すると、論理ドライブに対して個別に物理ドライブ番号・区画を指定できるようになります。この構成では、論理ドライブと区画の対応を解決するためのテーブルを次に示すように定義する必要があります。

+
+例:論理ドライブ0~2を物理ドライブ0(固定ディスク)の3つの基本区画に割り当て、
+   論理ドライブ3を物理ドライブ1(リムーバブル・ディスク)に割り当てる場合。
+
+const PARTITION Drives[] = {
+    {0, 0},     /* Logical drive 0 ==> Physical drive 0, 1st partition */
+    {0, 1},     /* Logical drive 1 ==> Physical drive 0, 2nd partition */
+    {0, 2},     /* Logical drive 2 ==> Physical drive 0, 3rd partition */
+    {1, 0}      /* Logical drive 3 ==> Physical drive 1 */
+};
+
+

複数区画指定を使用する場合、次の点に注意しなければなりません。 +

+
+ + + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/forward.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/forward.html new file mode 100644 index 0000000..6101449 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/forward.html @@ -0,0 +1,141 @@ + + + + + + + +FatFs - f_forward + + + + +
+

f_forward

+

t@Cf[^ǂݏoAMXg[ɒړ]܂B

+
+FRESULT f_forward (
+  FIL* FileObject,                 /* t@CEIuWFNg\ */
+  UINT (*Func)(const BYTE*,UINT),  /* f[^]֐ */
+  UINT ByteToFwd,                  /* ]oCg */
+  UINT* ByteFwd                    /* ]ꂽoCg */
+);
+
+
+ +
+

+
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
Func
+
f[^n[U`֐ւ̃|C^w肵܂B̊֐̎dl̓TvQƂĂB
+
ByteToRead
+
]oCg(0`UINT̍ől)w肵܂B
+
ByteRead
+
ۂɓ]ꂽoCgi[ϐw|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DENIED
+
ǂݍ݃[hŊJt@CǂݍƂB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CEIuWFNgB
+
+
+ + +
+

+

t@C̃f[^obt@ɓǂݏoɑMXg[ɒړ]܂BAvP[VŃf[^Eobt@KvƂȂ̂ŁǍꂽ‹ŗLłB]JnʒúÃ݂t@CR/W|C^ɂȂ܂Bt@CR/W|C^͓]ꂽoCgi݂܂Bw肳ꂽoCg̓]Ƀt@C̏I[ɒBꍇ⑗MXg[rW[ɂȂꍇA*ByteFwdByteToFwdȂ܂B

+
+ + +
+

Ή

+

_USE_FORWARD == 1ŁA_FS_TINY == 1̂ƂɎgp”\łB

+
+ + +
+

gpiI[fBIĐj

+
+/*-----------------------------------------------------------------------*/
+/* f_forward֐Ă΂f[^M֐̗                           */
+/*-----------------------------------------------------------------------*/
+
+UINT out_stream (   /* ߂l: ]ꂽoCg܂̓Xg[̏ */
+    const BYTE *p,  /* ]f[^w|C^ */
+    UINT btf        /* >0: ]s(oCg). 0: Xg[̏Ԃ𒲂ׂ */
+)
+{
+    UINT cnt = 0;
+
+
+    if (btf == 0) {     /* ZXv */
+        /* Xg[̏ԂԂ (0: rW[, 1: fB) */
+        /* UAfBԂA]vŏȂƂ1oCg */
+        /* ]Ȃ f_forward֐ FR_RW_ERROR ƂȂB */
+        if (FIFO_READY) cnt = 1;
+    }
+    else {              /* ]v */
+        do {    /* SẴoCg]邩AXg[rW[ɂȂ܂ŌJԂ */
+            FIFO_PORT = *p++;
+            cnt++;
+        } while (cnt < btf && FIFO_READY);
+    }
+
+    return cnt;
+}
+
+
+/*-----------------------------------------------------------------------*/
+/* f_forward֐̎gp                                                 */
+/*-----------------------------------------------------------------------*/
+
+FRESULT play_file (
+    char *fn        /* ĐI[fBIEt@Cw|C^ */
+)
+{
+    FRESULT rc;
+    FIL fil;
+    UINT dmy;
+
+    /* t@Cǂݏo[hŊJ */
+    rc = f_open(&fil, fn, FA_READ);
+
+    /* SẴf[^]邩G[܂ő */
+    while (rc == FR_OK && fil.fptr < fil.fsize) {
+
+        /* ق̏... */
+
+        /* I܂͗vɉăf[^Xg[ɑo */
+        rc = f_forward(&fil, out_stream, 1000, &dmy);
+    }
+
+    return rc;	/* FR_OK: I, ق:ُI */
+}
+
+
+ + +
+

Q

+

f_open, fgets, f_write, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/getfree.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/getfree.html new file mode 100644 index 0000000..23751c6 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/getfree.html @@ -0,0 +1,101 @@ + + + + + + + +FatFs - f_getfree + + + + +
+

f_getfree

+

_hCu̖gpNX^𓾂܂B

+
+FRESULT f_getfree (
+  const XCHAR* Path,       /* ΏۃhCũ[gEfBNg */
+  DWORD* Clusters,         /* 󂫃NX^i[ϐւ̃|C^ */
+  FATFS** FileSystemObject /* t@CEVXeEIuWFNgw|C^ւ̃|C^ */
+);
+
+
+ +
+

+
+
Path
+
Ώۂ̘_hCũ[gfBNgpX'\0'ŏI镶ւ̃|C^w肵܂B
+
Clusters
+
󂫃NX^i[DWORDϐւ̃|C^w肵܂B
+
FileSystemObject
+
ΏۃhCũt@CEVXeEIuWFNgw|C^Ԃ܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB*Clustersɋ󂫃NX^Ԃ܂B
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFATp[e[V‚ȂB
+
+
+ + +
+

+

_hCű󂫃NX^擾܂BԂꂽt@CEVXeEIuWFNgcsizeoNX^̃ZN^Ă̂ŁAɎۂ̋󂫃TCYvZł܂BFAT32{[ɂẮAFSINFȌԂɂĂ͕smȒlԂAɎԂ肷”\܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂Ƃgp”\łB

+
+ + +
+

gp

+
+    FATFS *fs;
+    DWORD fre_clust, fre_sect, tot_sect;
+
+
+    /* Get drive information and free clusters */
+    res = f_getfree("/", &fre_clust, &fs);
+    if (res) die(res);
+
+    /* Get total sectors and free sectors */
+    tot_sect = (fs->max_clust - 2) * fs->csize;
+    fre_sect = fre_clust * fs->csize;
+
+    /* Print free space in unit of KB (assuming 512B/sector) */
+    printf("%lu KB total drive space.\n"
+           "%lu KB available.\n",
+           fre_sect / 2, tot_sect / 2);
+
+
+ + +
+

Q

+FATFS +
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/gets.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/gets.html new file mode 100644 index 0000000..a464a9f --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/gets.html @@ -0,0 +1,63 @@ + + + + + + + +FatFs - f_gets + + + + +
+

f_gets

+

t@C當ǂݏo܂B

+
+char* f_gets (
+  char* Str,        /* obt@ */
+  int Size,         /* obt@̃TCY */
+  FIL* FileObject   /* t@CEIuWFNg */
+);
+
+
+ +
+

+
+
Str
+
ǂݏoobt@w|C^w肵܂B
+
Size
+
obt@̃TCYw肵܂B
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+

֐StrԂ܂B

+
+ + +
+

+

̊֐f_read()̃bp[֐łBǂݏóAŏ'\n'ǂݍނAt@CI[ɒB邩ASize - 1ǂݏo܂ő܂Bǂݍ܂ꂽ̏I[ɂ'\0't܂BɃt@CI[1ǂݍ܂ȂƂA܂͉炩̃G[ƂNULLԂ܂Bt@CI[G[f_eof(),f_error()}NŒׂ܂B

+
+ + +
+

Ή

+

_USE_STRFUNC 1܂ 2̂Ƃgp”\łB2̂Ƃ́At@CɊ܂܂'\r'菜ăobt@ɓǂݍ܂܂B

+
+ + +
+

Q

+

f_open, f_read, f_putc, f_puts, f_printf, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/lseek.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/lseek.html new file mode 100644 index 0000000..3ea09a5 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/lseek.html @@ -0,0 +1,110 @@ + + + + + + + +FatFs - f_lseek + + + + +
+

f_lseek

+

t@CR/W|C^ړ܂B

+
+FRESULT f_lseek (
+  FIL* FileObject,   /* t@CEIuWFNg\̂ւ̃|C^ */
+  DWORD Offset       /* ړItZbg */
+);
+
+
+ +
+

+
+
FileObject
+
ΏۂƂȂt@CEIuWFNg\̂ւ̃|C^w肵܂B
+
Offset
+
ړ̃ItZbgiR/W|C^jlBt@C擪̃ItZbgoCgPʂŎw肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CEIuWFNgB
+
+
+ + +
+

+

t@CR/W|C^(t@CEIuWFNgfptroŁAɓǂݏoE݂oCg̃ItZbg)ړ܂BItZbǧ_̓t@C擪łB݃[hŃt@CETCY傫Ȓlw肷ƁA܂Ńt@CgAgꂽ̃f[^͖`ƂȂ܂Bf[^xɏ݂Ƃ́A\߂̊֐ŕKvȃTCY܂Ńt@CETCYgĂƗǂł傤Bf_lseek֐IƂ́At@CR/W|C^ړfptr`FbNׂłBt@CR/W|C^w菬Ƃ́Ǎl܂B

+ +
+ + +
+

Ή

+

_FS_MINIMIZE < 3̂Ƃgp”\łB

+
+ + +
+

gp

+
+    /* ItZbg5000ֈړ */
+    res = f_lseek(&file, 5000);
+
+    /* t@CNjL̏ (t@CI[ֈړ) */
+    res = f_lseek(&file, file.fsize);
+
+    /* 3000oCgi߂ */
+    res = f_lseek(&file, file.fptr + 3000);
+
+    /* 2000oCg߂ (I[o[t[ɒ) */
+    res = f_lseek(&file, file.fptr - 2000);
+
+
+    /* NX^s蓖 (Xg[~OECg̃obt@EI[o[h~) */
+
+    res = f_open(&file, "record.wav", FA_CREATE_NEW | FA_WRITE); /* t@C쐬 */
+
+    res = f_lseek(&file, MAX_SIZE);        /* \ȃNX^̐s蓖 */
+    if (res || file.fptr != PRE_SIZE) .... /* t@Cgꂽ`FbN */
+
+    res = f_lseek(&file, DATA_START);      /* f[^EXg[̋L^(AP[VfBC) */
+    ...
+
+    res = f_truncate(&file);              /* sv̈̐؂̂ */
+    res = f_lseek(&file, 0);              /* wb_̋L^ */
+    ...
+
+    res = f_close(&file);
+
+
+ + +
+

Q

+

f_open, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkdir.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkdir.html new file mode 100644 index 0000000..5dd3860 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkdir.html @@ -0,0 +1,89 @@ + + + + + + + +FatFs - f_mkdir + + + + +
+

f_mkdir

+

fBNg쐬܂B

+
+FRESULT f_mkdir (
+  const XCHAR* DirName /* 쐬fBNgւ̃|C^ */
+);
+
+
+ +
+

+
+
DirName
+
쐬fBNgpX'\0'ŏI镶ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_DENIED
+
fBXNfBNgEGgt̏ꍇȂǁB
+
FR_EXIST
+
̃fBNgt@C݂B
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

̃fBNg쐬܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂Ƃgp”\łB

+
+ + +
+

gp

+
+    res = f_mkdir("sub1");
+    if (res) die(res);
+    res = f_mkdir("sub1/sub2");
+    if (res) die(res);
+    res = f_mkdir("sub1/sub2/sub3");
+    if (res) die(res);
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkfs.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkfs.html new file mode 100644 index 0000000..14fdff4 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mkfs.html @@ -0,0 +1,78 @@ + + + + + + + +FatFs - f_mkfs + + + + +
+

f_mkfs

+

hCuFATt@CEVXe쐬(tH[}bg)܂B

+
+FRESULT f_mkfs (
+  BYTE  Drive,              /* _hCuԍ */
+  BYTE  PartitioningRule,   /* 쐬@ */
+  WORD  AllocSize           /* NXE^TCY */
+);
+
+
+ +
+

+
+
Drive
+
tH[}bg_hCu(0-9)B
+
PartitioningRule
+
0w肷ƁAhCȗS̈߂{DOS쐬Ƃ̋Ƀt@CEVXe쐬܂(FDISKtH[}bg)B1w肷ƁAe[u쐬hCu̐擪ZN^璼ڃt@CEVXe쐬܂(super floppy (SFD) tH[}bg)B
+
AllocSize
+
NX^ETCYoCgPʂŎw肵܂B0܂512`32768͈̔͂ł2̗ݏłȂ΂Ȃ܂B0w肷ƃhCuETCYɉftHg̃NX^ETCYI܂BFAT64(64KB/NX^)͑Ił܂B
+
+
+ +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_INVALID_DRIVE
+
hCuԍB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA蓖ĂĂȂB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_MKFS_ABORTED
+
̗RŊJnOɏfꂽB +
    +
  • fBXNETCYB
  • +
  • 炩̈sB
  • +
  • ̃NX^ETCYgȂBNX^0xFF70xFFF7ߕӂɂȂƂ”\B
  • +
+
+
+
+ +
+

+

f_mkfs֐FATt@CEVXehCuɍ쐬܂B[ouEfBÃp[e[VjOE[ƂĂFDISK`SFD`AEJ[hłFDISK`ʂłB̊֐ɂ͑ΉĂȂ̂ŁA̕hCů̋͑Sč폜AŜ‚̋ɂȂ܂B

+

FAT^Cv(FAT12/FAT16/FAT32)́A̘_hCuNX^ɂĂ̂݌[FATdl]܂ɂȂĂāAȊO̗v͂܂BāAǂFAT^CvɂȂ邩̓hCuETCYƎw肳ꂽNX^ETCYɈˑ܂BNX^ETCY͑傫قǐ\オAtɃfBXNp͗܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_USE_MKFS == 1̂Ƃgp”\łB

+
+ + +

Return

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mount.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mount.html new file mode 100644 index 0000000..425f921 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/mount.html @@ -0,0 +1,65 @@ + + + + + + + +FatFs - f_mount + + + + +
+

f_mount

+

_hCu({[)̃[NEGAo^E܂B

+
+FRESULT f_mount (
+  BYTE  Drive,               /* _hCuԍ */
+  FATFS*  FileSystemObject   /* [NEGAւ̃|C^ */
+);
+
+
+ +
+

+
+
Drive
+
_hCuԍ(0-9)B
+
FileSystemObject
+
o^郏[NEGA(t@CEVXeEIuWFNg)ւ̃|C^B
+
+
+ +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_INVALID_DRIVE
+
hCuԍB
+
+
+ + +
+

+

FatFsW[ł͂ꂼ̘_hCuɃt@CEVXeEIuWFNgƂ[NEGAKvłB̊֐͘_hCuɂ̃[NEGAo^薕肵܂B炩̃t@C֐gpOɂ̊֐ł̘_hCũ[NEGA^ĂȂ΂Ȃ܂BFileSystemObjectɃkE|C^w肷Ƃ̘_hCũ[NEGA̓o^͖Ao^Ă[NEGA͔jł܂B

+

̊֐ł͕hCuւ̃ANZX͔A[NEGAēzɂ̃AhXo^邾łBۂ̃}EǵAf_mount()܂̓fBAAŏ̃t@CEANZX̂Ƃɍs܂B

+
+ + +
+

Ή

+

SĂ̍\Ŏgp”\łB

+
+ + +
+

Q

+

FATFS

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/open.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/open.html new file mode 100644 index 0000000..6be7497 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/open.html @@ -0,0 +1,144 @@ + + + + + + + +FatFs - f_open + + + + +
+

f_open

+

t@CI[v܂͍쐬܂B

+
+FRESULT f_open (
+  FIL* FileObject,       /* ̃t@CEIuWFNg\̂ւ̃|C^ */
+  const XCHAR* FileName, /* t@C̃tpXւ̃|C^ */
+  BYTE ModeFlags         /* [htO */
+);
+
+
+ +
+

+
+
FileObject
+
V쐬t@CEIuWFNg\̂ւ̃|C^w肵܂Bȍ~Ãt@C‚܂ł̃t@CEIuWFNggpăt@C܂B
+
FileName
+
J(܂͍쐬)t@C t@C'\0'ŏI镶ւ̃|C^w肵܂B
+
ModeFlags
+
t@C̃ANZX@I[v@߂tOłB̃p[^ɂ͎̑gݍ킹w肵܂B
+ + + + + + + + +
lӖ
FA_READǂݏo[hŊJ܂BǂݏꍇFA_WRITEƋɎw肵܂B
FA_WRITE݃[hŊJ܂BǂݏꍇFA_READƋɎw肵܂B
FA_OPEN_EXISTING̃t@CJ܂Bt@CƂ̓G[ɂȂ܂B(ftHg)
FA_OPEN_ALWAYS̃t@CJ܂Bt@CƂ̓t@C쐬܂B
FA_CREATE_NEWt@C쐬܂B̃t@Cꍇ́AG[ɂȂ܂B
FA_CREATE_ALWAYSt@C쐬܂B̃t@Cꍇ́ATCY0ɂĂJ܂B
+
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IBȍ~AFileObject\̂gẴt@C𑀍ł܂B
+
FR_NO_FILE
+
t@C‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
t@CsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_EXIST
+
̃t@CɂB
+
FR_DENIED
+
ANZXۂꂽB[hEI[Et@C̏݃[hEI[vÃfBNg܂̓[hEI[Et@CԂł̃t@C쐬AfBXN܂̓fBNgEe[utŃt@C쐬łȂȂǁB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~Ԃŏ݌nI[vB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA蓖ĂĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

̃t@CJAVt@C쐬܂B֐ƃt@CEIuWFNg쐬Aȍ~̃t@Cɑ΂ANZXɎgp܂Bt@C‚Ƃ́Af_close()gp܂B炩̕ύXsꂽt@Č㐳‚ȂꍇÃt@Cjꍇ܂B

+

t@CEANZXJnOɁAf_mount()gĂꂼ̘_hCuɃ[NEGA(t@CEVXeEIuWFNg)^Kv܂B̏̌A̘_hCuɑ΂đSẴt@C֐g悤ɂȂ܂B

+
+ + +
+

Ή

+

SĂ̍\Ŏgp”\łB_FS_READONLY == 1̂Ƃ́AFA_WRITE, FA_CREATE_ALWAYS, FA_CREATE_NEW, FA_OPEN_ALWAYS̊etO̓T|[g܂B

+
+ + +
+

gpit@CERs[j

+
+void main (void)
+{
+    FATFS fs[2];         /* _hCũ[NEGA(t@CEVXeEIuWFNg) */
+    FIL fsrc, fdst;      /* t@CEIuWFNg */
+    BYTE buffer[4096];   /* file copy buffer */
+    FRESULT res;         /* FatFs function common result code */
+    UINT br, bw;         /* File R/W count */
+
+    /* hCu0,1Ƀ[NEGA^ */
+    f_mount(0, &fs[0]);
+    f_mount(1, &fs[1]);
+
+    /* hCu1̃\[XEt@CJ */
+    res = f_open(&fsrc, "1:srcfile.dat", FA_OPEN_EXISTING | FA_READ);
+    if (res) die(res);
+
+    /* hCu0ɃfXeBl[VEt@C쐬 */
+    res = f_open(&fdst, "0:dstfile.dat", FA_CREATE_ALWAYS | FA_WRITE);
+    if (res) die(res);
+
+    /* \[XfXeBl[VɃRs[ */
+    for (;;) {
+        res = f_read(&fsrc, buffer, sizeof(buffer), &br);
+        if (res || br == 0) break;   /* G[t@CI[ */
+        res = f_write(&fdst, buffer, br, &bw);
+        if (res || bw < br) break;   /* G[fBXNt */
+    }
+
+    /* SẴt@C‚ */
+    f_close(&fsrc);
+    f_close(&fdst);
+
+    /* [NEGAJ */
+    f_mount(0, NULL);
+    f_mount(1, NULL);
+}
+
+
+ + +
+

Q

+

f_read, f_write, f_close, FIL, FATFS

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/opendir.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/opendir.html new file mode 100644 index 0000000..311ffeb --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/opendir.html @@ -0,0 +1,79 @@ + + + + + + + +FatFs - f_opendir + + + + +
+

f_opendir

+

fBNgJ܂B

+
+FRESULT f_opendir (
+  DIR* DirObject,       /* fBNgEuWFNg\̂ւ̃|C^ */
+  const XCHAR* DirName  /* fBNgւ̃|C^ */
+);
+
+
+ +
+

+
+
DirObject
+
fBNgEIuWFNg\̂ւ̃|C^w肵܂B
+
DirName
+
I[vfBNgւpX'\0'ŏI镶ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

fBNgJ܂BIADirObject\̂gẴfBNg̍ڂǂݏo܂BDirObject\͎̂gp͔Cӂ̎_Ŕjł܂B

+
+ + +
+

Ή

+

_FS_MINIMIZE <= 1̂Ƃgp”\ɂȂ܂B

+
+ + +
+

Q

+

f_readdir, DIR

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/printf.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/printf.html new file mode 100644 index 0000000..c742972 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/printf.html @@ -0,0 +1,82 @@ + + + + + + + +FatFs - f_printf + + + + +
+

f_printf

+

t@Cɏ݂܂B

+
+int f_printf (
+  FIL* FileObject,     /* t@CEIuWFNg */
+  const char* Foramt,  /* 䕶 */
+  ...
+);
+
+
+ +
+

+
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
Format
+
'\0'ŏI鏑䕶w|C^w肵܂B'\0'͏܂܂B
+
...
+
IvV̈B
+ +
+
+ + +
+

߂l

+

񂪐ɏ܂Ə񂾕Ԃ܂BfBXNt܂͂̑G[ɂ萳ɏ܂ȂƂEOF(-1)Ԃ܂B

+
+ + +
+

+

̊֐f_putc()f_puts()̃bp[֐łB@\̓TuZbgƂȂĂāA䕶͎Ɏ̂gp”\łB

+ +
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_USE_STRFUNC 1܂ 2̂Ƃgp”\ɂȂ܂B2̎́Ao͂Ɋ܂܂'\n'"\r\n"ɓWJăt@Cɏ܂܂B

+
+ + +
+

gp

+
+    f_printf(&fil, "%6d", -200);         // "  -200"
+    f_printf(&fil, "%02u", 5);           // "05"
+    f_printf(&fil, "%ld", 12345678L);    // "12345678"
+    f_printf(&fil, "%08lX", 1194684UL);  // "00123ABC"
+    f_printf(&fil, "%s", "String");      // "String"
+    f_printf(&fil, "%c", 'a');           // "a"
+
+
+ + +
+

Q

+

f_open, f_putc, f_puts, f_gets, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/putc.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/putc.html new file mode 100644 index 0000000..c117cf3 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/putc.html @@ -0,0 +1,60 @@ + + + + + + + +FatFs - f_putc + + + + +
+

f_putc

+

t@Cɕ݂܂B

+
+int f_putc (
+  int Chr,          /* ޕ */
+  FIL* FileObject   /* t@CEIuWFNg */
+);
+
+
+ +
+

+
+
Chr
+
ޕw肵܂B
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+

ɏ܂Ə񂾕Ԃ܂BfBXNt܂͂̑G[ɂ菑܂ȂƂEOFԂ܂B

+
+ + +
+

+

1t@Cɏ݂܂B̊֐f_write()̃bp[֐łB

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_USE_STRFUNC 1܂ 2̂Ƃgp”\łB2w肷ƁA'\n'"\r\n"ɓWJăt@Cɏ܂܂B

+
+ + +
+

Q

+

f_open, f_puts, f_printf, f_gets, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/puts.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/puts.html new file mode 100644 index 0000000..7d8044f --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/puts.html @@ -0,0 +1,60 @@ + + + + + + + +FatFs - f_puts + + + + +
+

f_puts

+

t@Cɕ݂܂B

+
+int f_puts (
+  const char* Str,  /*  */
+  FIL* FileObject   /* t@CEIuWFNg */
+);
+
+
+ +
+

+
+
Str
+
'\0'ŏI镶w|C^w肵܂B'\0'͏܂܂B
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+

񂪐ɏ܂Ə񂾕Ԃ܂BfBXNt܂͂̑G[ɂ萳ɏ܂ȂƂEOFԂ܂B

+
+ + +
+

+

t@Cɏ݂܂B̊֐f_putc()̃bp[֐łB

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_USE_STRFUNC 1܂ 2̂Ƃgp”\łB2w肷ƁAɊ܂܂'\n'"\r\n"ɓWJăt@Cɏ܂܂B

+
+ + +
+

Q

+

f_open, f_putc, f_printf, f_gets, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/read.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/read.html new file mode 100644 index 0000000..b4096de --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/read.html @@ -0,0 +1,79 @@ + + + + + + + +FatFs - f_read + + + + +
+

f_read

+

t@Cf[^ǂݏo܂B

+
+FRESULT f_read (
+  FIL* FileObject,    /* t@CEIuWFNg\ */
+  void* Buffer,       /* ǂݏof[^i[obt@ */
+  UINT ByteToRead,    /* ǂݏooCg */
+  UINT* ByteRead      /* ǂݏoꂽoCg */
+);
+
+
+ +
+

+
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
Buffer
+
ǂݏof[^i[obt@w|C^w肵܂B
+
ByteToRead
+
ǂݏooCg(0`UINT̍ől)w肵܂B
+
ByteRead
+
ۂɓǂݏoꂽoCgi[ϐw|C^w肵܂B߂l͊֐̐ۂɂ炸ɗLłB
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DENIED
+
ǂݍ݃[hŊJt@CǂݍƂB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CEIuWFNgB
+
+
+ + +
+

+

ǂݍ݊JnʒúÃ݂t@CR/W|C^ɂȂ܂Bt@CR/W|C^͓ǂݍ܂ꂽoCgi݂܂BǂݍݒɃt@C̏I[ɒBƁA*ByteReadByteToReadȂ܂B

+
+ + +
+

Ή

+

SĂ̍\Ŏgp”\łB

+
+ + +
+

Q

+

f_open, fgets, f_write, f_close, FIL

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/readdir.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/readdir.html new file mode 100644 index 0000000..13c6b56 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/readdir.html @@ -0,0 +1,124 @@ + + + + + + + +FatFs - f_readdir + + + + +
+

f_readdir

+

fBNgڂǂݏo܂

+
+FRESULT f_readdir (
+  DIR* DirObject,    /* fBNgEuWFNg\̂ւ̃|C^ */
+  FILINFO* FileInfo  /* t@C\̂ւ̃|C^ */
+);
+
+
+ +
+

+
+
DirObject
+
fBNgEIuWFNg\̂ւ̃|C^w肵܂B
+
FileInfo
+
ǂݏofBNgڂi[t@C\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_INVALID_OBJECT
+
ȃfBNgEIuWFNgB
+
+
+ + +
+

+

fBNgڂǂݏo܂B̊֐JԂs邱ƂɂfBNg̑SĂ̍ڂǂݏoƂł܂BSĂ̍ڂǂݏoAǂݏoڂƂ́Af_name[]oɃk񂪕Ԃ܂B{[͓ǂݏoƂɊĂA邱Ƃ͂܂B"."A".."́A΃pXLȂƂ(_FS_RPATH == 1)ɂ̂݌܂Bt@C̏ڍׂɂ‚Ă FILINFO\̂QƂĂBFileInfoɃkE|C^w肷ƁÃfBNg̃[hECfbNX߂܂B

+

LFN@\LȎ́Af_readdir֐̌Ăяoɐ旧FILINFO\̂lfnamelfsizeLȒlŏĂȂ΂Ȃ܂BlfnameLFNi[obt@ŁAlfsize͂̃obt@ETCY()łB̏Ɉ‚łYꍇ́ALFNi[obt@Ƀk񂪕Ԃ܂B

+ +

܂AlfnameɃkE|C^w肵ꍇ́ALFNɊւĉԂ܂BLFN݂ȂƂ́Af_name[]oSFNASCIIp܂܂ꍇ܂B

+
+ + +
+

Ή

+

_FS_MINIMIZE <= 1̂ƂɎgp”\łB

+
+ + +
+

gp

+
+FRESULT scan_files (char* path)
+{
+    FRESULT res;
+    FILINFO fno;
+    DIR dir;
+    int i;
+    char *fn;
+#if _USE_LFN
+    static char lfn[_MAX_LFN * (_DF1S ? 2 : 1) + 1];
+    fno.lfname = lfn;
+    fno.lfsize = sizeof(lfn);
+#endif
+
+
+    res = f_opendir(&dir, path);
+    if (res == FR_OK) {
+        i = strlen(path);
+        for (;;) {
+            res = f_readdir(&dir, &fno);
+            if (res != FR_OK || fno.fname[0] == 0) break;
+            if (fno.fname[0] == '.') continue;
+#if _USE_LFN
+            fn = *fno.lfname ? fno.lfname : fno.fname;
+#else
+            fn = fno.fname;
+#endif
+            if (fno.fattrib & AM_DIR) {
+                sprintf(&path[i], "/%s", fn);
+                res = scan_files(path);
+                if (res != FR_OK) break;
+                path[i] = 0;
+            } else {
+                printf("%s/%s\n", path, fn);
+            }
+        }
+    }
+
+    return res;
+}
+
+
+ + +
+

Q

+

f_opendir, f_stat, FILINFO, DIR

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/rename.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/rename.html new file mode 100644 index 0000000..4f4e796 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/rename.html @@ -0,0 +1,93 @@ + + + + + + + +FatFs - f_rename + + + + +
+

f_rename

+

t@C܂̓fBNg̖O̕ύX܂͈ړB

+
+FRESULT f_rename (
+  const XCHAR* OldName, /* Ât@C܂̓fBNg */
+  const XCHAR* NewName  /* Vt@C܂̓fBNg */
+);
+
+
+ +
+

+
+
OldName
+
ύXΏۂ̃IuWFNg(t@C܂̓fBNg)ւpX̓'\0'ŏI镶ւ̃|C^w肵܂B
+
NewName
+
Vt@C܂̓fBNg̃tpX̓'\0'ŏI镶ւ̃|C^w肵܂Bɑ݂閼O͎g܂B܂AhCuԍ͎włAOldNameŎw肳ꂽ{[̃IuWFNgƂĈ܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
OldNamẽIuWFNg‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_DENIED
+
hCueʂ̕s̗RŐVÕIuWFNgȂB
+
FR_EXIST
+
NewNameƓOɑ݂B
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
_hCuɃ[NGA蓖ĂĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

IuWFNg̖OύX܂B܂Aʂ̃fBNgւ̈ړ(hCû)”\łBJĂIuWFNgɑ΂ĎgpĂ͂Ȃ܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂ƂɎgp”\łB

+
+ + +
+

gp

+
+    /* t@C܂̓TufBNg̖OύX */
+    f_rename("oldname.txt", "newname.txt");
+
+    /* t@C܂̓TufBNg̖O̕ύXƕʂ̃fBNgւ̈ړ */
+    f_rename("oldname.txt", "dir1/newname.txt");
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sdir.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sdir.html new file mode 100644 index 0000000..7e8d5f7 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sdir.html @@ -0,0 +1,36 @@ + + + + + + + +FatFs - DIR + + + + +
+

DIR

+

DIR\̂́Af_opendir(), f_readdir()̃[NEGAƂĎgp܂BAvP[VύX”\ȃo͂܂B

+
+typedef struct _DIR_ {
+    FATFS*  fs;        /* Pointer to the owner file system object */
+    WORD    id;        /* Owner file system mount ID */
+    WORD    index;     /* Current index number */
+    DWORD   sclust;    /* Table start cluster (0:Static table) */
+    DWORD   clust;     /* Current cluster */
+    DWORD   sect;      /* Current sector */
+    BYTE*   dir;       /* Pointer to the current SFN entry in the win[] */
+    BYTE*   fn;        /* Pointer to the SFN (in/out) {file[8],ext[3],status[1]} */
+#if _USE_LFN
+    WCHAR*  lfn;       /* Pointer to the LFN working buffer */
+    WORD    lfn_idx;   /* Last matched LFN index (0xFFFF:No LFN) */
+#endif
+} DIR;
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfatfs.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfatfs.html new file mode 100644 index 0000000..2789e40 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfatfs.html @@ -0,0 +1,51 @@ + + + + + + + +FatFs - FATFS + + + + +
+

FATFS

+

FATFS\̂́AX̘_hCũ_Ci~bNE[NEGAێAf_mount()FatFsW[ɓo^܂BWԂł͎̂悤ȃoɂȂĂ܂BAvP[V珑”\ȃo͂܂B

+ +
+typedef struct _FATFS_ {
+    BYTE    fs_type;      /* FAT sub type */
+    BYTE    drive;        /* Physical drive number */
+    BYTE    csize;        /* Number of sectors per cluster */
+    BYTE    n_fats;       /* Number of FAT copies */
+    BYTE    wflag;        /* win[] dirty flag (1:must be written back) */
+    BYTE    fsi_flag;     /* fsinfo dirty flag (1:must be written back) */
+    WORD    id;           /* File system mount ID */
+    WORD    n_rootdir;    /* Number of root directory entries (0 on FAT32) */
+#if _FS_REENTRANT
+    HANDLE  h_mutex;      /* Handle to the mutex (Platform dependent) */
+#endif
+#if _MAX_SS != 512
+    WORD    s_size;       /* Sector size */
+#endif
+#if !_FS_READONLY
+    DWORD   last_clust;   /* Last allocated cluster */
+    DWORD   free_clust;   /* Number of free clusters */
+    DWORD   fsi_sector;   /* fsinfo sector */
+#endif
+    DWORD   sects_fat;    /* Sectors per fat */
+    DWORD   max_clust;    /* Maximum cluster# + 1. Number of clusters is max_clust - 2 */
+    DWORD   fatbase;      /* FAT start sector */
+    DWORD   dirbase;      /* Root directory start sector (Cluster# on FAT32) */
+    DWORD   database;     /* Data start sector */
+    DWORD   winsect;      /* Current sector appearing in the win[] */
+    BYTE    win[_MAX_SS]; /* Disk access window for Directory/FAT */
+} FATFS;
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfile.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfile.html new file mode 100644 index 0000000..e30b910 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfile.html @@ -0,0 +1,41 @@ + + + + + + + +FatFs - FIL + + + + +
+

FIL

+

FIL\̂́Af_open()ō쐬Ãt@C̏Ԃێ܂BAvP[V珑”\ȃo͂܂B

+ +
+typedef struct _FIL_ {
+    FATFS*  fs;           /* Pointer to the owner file system object */
+    WORD    id;           /* Owner file system mount ID */
+    BYTE    flag;         /* File status flags */
+    BYTE    csect;        /* Sector address in the cluster */
+    DWORD   fptr;         /* File R/W pointer */
+    DWORD   fsize;        /* File size */
+    DWORD   org_clust;    /* File start cluster */
+    DWORD   curr_clust;   /* Current cluster */
+    DWORD   dsect;        /* Current data sector */
+#if _FS_READONLY == 0
+    DWORD   dir_sect;     /* Sector containing the directory entry */
+    BYTE*   dir_ptr;      /* Ponter to the directory entry in the window */
+#endif
+#if !_FS_TINY
+    BYTE    buf[_MAX_SS];  /* File R/W buffer */
+#endif
+} FIL;
+
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfileinfo.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfileinfo.html new file mode 100644 index 0000000..dfdb704 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sfileinfo.html @@ -0,0 +1,69 @@ + + + + + + + +FatFs - FILINFO + + + + +
+

FILINFO

+

FILINFO\̂́Af_stat(), f_readdir()ŕԂt@Cێ܂B

+
+typedef struct _FILINFO_ {
+    DWORD fsize;     /* File size */
+    WORD fdate;      /* Last modified date */
+    WORD ftime;      /* Last modified time */
+    BYTE fattrib;    /* Attribute */
+    char fname[13];  /* Short file name (8.3 format) */
+#if _USE_LFN
+    XCHAR* lfname;   /* Pointer to the LFN buffer */
+    int lfsize;      /* Size of LFN buffer [characters] */
+#endif
+} FILINFO;
+
+
+ +

o

+
+
fsize
+
t@C̃oCgPʂ̃TCYi[܂BfBNg̏ꍇ͏0łB
+
fdate
+
t@C̕ύXꂽtA܂̓fBNg̍쐬ꂽti[܂B
+
+
bit15:9
+
1980NN_ƂN 0..127 œ܂B
+
bit8:5
+
1..12 ̒lœ܂B
+
bit4:0
+
1..31 ̒lœ܂B
+
+
+
ftime
+
t@C̕ύXꂽA܂̓fBNg̍쐬ꂽi[܂B
+
+
bit15:11
+
0..23 ̒lœ܂B
+
bit10:5
+
0..59 ̒lœ܂B
+
bit4:0
+
b/2 0..29 ̒lœ܂B
+
+
+
fattrib
+
tOi[܂BtOAM_DIR, AM_RDO, AM_HID, AM_SYS, AM_ARC̑gݍ킹ƂȂ܂B
+
fname[]
+
8.3`̖O'\0'ŏI镶ƂĊi[܂BLFN\̂Ƃ́Aɑ啶ŕԂ܂BLFN\̂Ƃ͒ZOԂ܂AASCIIpɂȂꍇ܂B
+
lfname
+
Ԃ钷t@Ci[obt@ւ̃|C^B̍\̂gpOɃAvP[Vɂ菉Ȃ΂Ȃ܂BLFN\̂Ƃ͂̃o݂͑܂B
+
lfsize
+
t@Ci[obt@̃TCY()B̍\̂gpOɃAvP[Vɂ菉Ȃ΂Ȃ܂BLFN\̂Ƃ͂̃o݂͑܂B
+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/stat.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/stat.html new file mode 100644 index 0000000..3db289c --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/stat.html @@ -0,0 +1,80 @@ + + + + + + + +FatFs - f_stat + + + + +
+

f_stat

+
+FRESULT f_stat (
+  const char* FileName,  /* t@C܂̓fBNgւ̃|C^ */
+  FILINFO* FileInfo      /* t@C\̂ւ̃|C^ *
+);
+
+
+ +
+

+
+
FileName
+
𓾂t@C܂̓fBNg'\0'ŏI镶w|C^w肵܂B
+
FileInfo
+
ǂݏot@Ci[t@C\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
t@C܂̓fBNg‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
_hCuɃ[NGA蓖ĂĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

t@C܂̓fBNgɊւ𓾂܂Bt@C̏ڍׂɂ‚Ă FILINFO\̂QƂĂB

+
+ + +
+

Ή

+

_FS_MINIMIZE == 0̂ƂɎgp”\łB

+
+ + +
+

Q

+

f_opendir, f_readdir, FILINFO, DIR

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sync.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sync.html new file mode 100644 index 0000000..670ccfb --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/sync.html @@ -0,0 +1,68 @@ + + + + + + + +FatFs - f_sync + + + + +
+

f_sync

+

ݒ̃t@C̃LbVꂽtbV܂B

+
+FRESULT f_sync (
+  FIL* FileObject     /* t@CEIuWFNg\̂ւ̃|C^ */
+);
+
+
+ +
+

+
+
FileObject
+
synct@C̃t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
t@CEIuWFNgB
+
+
+ + +
+

+

̊֐f_close()Ɠs܂At@C͈Jꂽ܂܂ɂȂAǂݏ𑱍sł܂BMOȂǁA݃[hŒԃt@CJĂAvP[VɂāAI܂͋؂̗ǂƂsync邱ƂɂAsӂ̓df⃁fBA̎Oɂ莸f[^ŏɂ邱Ƃł܂Bۂ̂ƂAf_closełsyncƃt@CEIuWFNgjĂ邾Ȃ̂ŁAf_closeOsync͈Ӗ܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0̂ƂɎgp”\łB

+
+ + +
+

Q

+

f_close

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/truncate.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/truncate.html new file mode 100644 index 0000000..c002609 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/truncate.html @@ -0,0 +1,71 @@ + + + + + + + +FatFs - f_truncate + + + + +
+

f_truncate

+

t@C؂l߂܂B

+
+FRESULT f_truncate (
+  FIL* FileObject     /* t@CEIuWFNgւ̃|C^ */
+);
+
+
+ +
+

+
+
FileObject
+
؂lߑΏۃt@C̃t@CEIuWFNgւ̃|C^
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DENIED
+
t@C񏑂݃[hŊJĂB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CEIuWFNgB
+
+
+ + +
+

+

t@C݂̒̃t@CR/W|C^ɐ؂l߂܂Bt@CR/W|C^t@C̏I[wĂƂ́Å֐͉̌ʂ܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂ƂɎgp”\łB

+
+ + +
+

Q

+

f_open, f_lseek, FIL

+
+ + +

Return

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/unlink.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/unlink.html new file mode 100644 index 0000000..de3fb75 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/unlink.html @@ -0,0 +1,76 @@ + + + + + + + +FatFs - f_unlink + + + + +
+

f_unlink

+

IuWFNg폜܂B

+
+FRESULT f_unlink (
+  const XCHAR* FileName  /* IuWFNgւ̃|C^ */
+);
+
+
+ +
+

+
+
FileName
+
폜Ώۂt@C܂̓fBNg̓'\0'ŏI镶ւ̃|C^w肵܂B
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
t@C‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_DRIVE
+
hCuԍsB
+
FR_DENIED
+
ΏۃIuWFNg[hEI[AfBNg̏ꍇ͋łȂꍇȂǁB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
_hCuɃ[NEGA蓖ĂĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

IuWFNg폜܂BJĂIuWFNgJgEfBNg͍폜Ă͂Ȃ܂B

+
+ +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂ƂɎgp”\łB

+
+ + +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/utime.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/utime.html new file mode 100644 index 0000000..05a36a6 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/utime.html @@ -0,0 +1,83 @@ + + + + + + + +FatFs - f_utime + + + + +
+

f_utime

+

IuWFNg̃^CX^vύX܂B

+
+FRESULT f_utime (
+  const XCHAR* FileName,   /* IuWFNgւ̃|C^ */
+  const FILINFO* TimeDate  /* ݒ肷t */
+);
+
+
+ +
+

+
+
FileName
+
ύXΏۂ̃t@C܂̓fBNgւpX̓'\0'ŏI镶w肵܂B
+
TimeDate
+
ݒ肷tƎԂfdateftimeoɐݒ肳ꂽFILINFO\̂ւ̃|C^B̃oDon't carełB
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_NO_FILE
+
t@C‚ȂB
+
FR_NO_PATH
+
pX‚ȂB
+
FR_INVALID_NAME
+
pXsB
+
FR_INVALID_NAME
+
hCuԍsB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_WRITE_PROTECTED
+
fBA݋֎~ԁB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_ENABLED
+
̘_hCuɃ[NEGA^ĂȂB
+
FR_NO_FILESYSTEM
+
fBXNɗLFAT{[‚ȂB
+
+
+ + +
+

+

IuWFNg̃^CX^vύX܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0ŁA_FS_MINIMIZE == 0̂ƂɎgp”\łB

+
+ + +
+

Q

+

f_stat, FILINFO

+
+ +

߂

+ + diff --git a/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/write.html b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/write.html new file mode 100644 index 0000000..447e779 --- /dev/null +++ b/third_party/FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/ja/write.html @@ -0,0 +1,79 @@ + + + + + + + +FatFs - f_write + + + + +
+

f_write

+

t@CɃf[^݂܂B

+
+FRESULT f_write (
+  FIL* FileObject,     /* t@CEIuWFNg */
+  const void* Buffer,  /* ݃f[^ */
+  UINT ByteToWrite,    /* ރoCg */
+  UINT* ByteWritten    /* ܂ꂽoCg */
+);
+
+
+ +
+

+
+
FileObject
+
t@CEIuWFNg\̂ւ̃|C^w肵܂B
+
Buffer
+
ރf[^i[obt@w|C^w肵܂B
+
ByteToWrite
+
ރoCg(0`UINT̍ől)w肵܂B
+
ByteWritten
+
܂ꂽoCgi[ϐw|C^w肵܂B߂l͊֐̐ۂɂ炸ɗLłB
+
+
+ + +
+

߂l

+
+
FR_OK (0)
+
IB
+
FR_DENIED
+
񏑂݃[hŊJꂽt@CɏƂB
+
FR_DISK_ERR
+
fBXNEG[ɂ鎸sB
+
FR_INT_ERR
+
sFAT\܂͓G[ɂ鎸sB
+
FR_NOT_READY
+
fBAZbgĂȂȂǁAhCus\ԁB
+
FR_INVALID_OBJECT
+
ȃt@CIuWFNgB
+
+
+ + +
+

+

݊JnʒúAt@CR/W|C^̈ʒuɂȂ܂Bt@CR/W|C^͎ۂɏ܂ꂽoCgi݂܂B֐IAvoCg܂ꂽǂ*ByteWritten`FbNׂłB*ByteWritten < ByteToWritêƂ́AfBXNEtӖ܂B

+
+ + +
+

Ή

+

_FS_READONLY == 0̂ƂɎgp”\łB

+
+ + +
+

Q

+

f_open, f_read, fputc, fputs, fprintf, f_close, FIL

+
+ +

߂

+ + -- cgit v1.3.1