免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
fatfs長文件名及模塊剪裁問題

減小模塊大小

Follwing table shows which function is removed by configurationoptions for the module size reduction.

下面的表顯示了通過設置配置選項哪些函數(shù)將會移除,進而減小模塊大小

Function_FS_MINIMIZE_FS_READONLY_USE_STRFUNC_USE_MKFS_USE_FORWARD
1231000
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_mkfsxx
f_forwardx
f_putcxx
f_putsxx
f_printfxx
f_getsx

 

 

長文件名

The FatFs module supports long file name (LFN) from revision 0.07.The two different file names, SFN and LFN, of a file is transparentin the file functions except for f_readdir function. The LFNfeature requiers a certain working buffer in addition. The buffersize can be configured by _MAX_LFN corresponding to the availablememory size. The size of long file name will reach up to 255characters, so that the _MAX_LFN should be set to 255 for fullfeatured LFN operation. When the size of working buffer isinsufficient for the given file name, the file function will failwith FR_INVALID_NAME.

FatFs從0.07版本開始支持長文件名(LFN)。在調(diào)用文件函數(shù)時,一個文件的兩個文件名(SFN與LFN)是通用的,除了f_readdir函數(shù)。支持長文件特性將需要一個額外的工作緩沖區(qū),此緩沖區(qū)的大小可以通過設置_MAX_LFN來以可用的內(nèi)存大小相符。因為長文件名長達255個字符,因此_MAX_LFN應該設置為255來支持全特性的LFN選項。當工作緩沖區(qū)的大小容不下給出的文件名時文件函數(shù)就會因為FR_INVALID_NAME而調(diào)用失敗。

 

LFN cfg on ARM7DMI Code page ROM size [bytes]SBCS +4719932(Shift-JIS) +63755936(GBK) +178943949(Korean) +141003950(Big5) +112631

When LFN is enabled, the module size will be increased depends onthe selected code page. Right table shows the difference in modulesize between the conditions that LFN is disabled and enabled onsome code pages. We are the Japanese, Chinese and Korean have tensof thousands of characters. Unfortunately, it requires a hugeOEM-Unicode bidirectional conversion table and the module size willbe drastically increased that shown in the table. As the result,the FatFs with LFN enabled will not able to be implemented to most8-bit microcontrollers including AVR. This is the reason why I hadnot been interested in implementing the LFN feature for a long time:-)

當使能LFN,模塊增加的大小由編碼頁類型決定,右邊的表顯示了LFN禁用與使用某些編碼來使能時模塊的不同大小。日語、中文與韓國語擁有成千上萬的字詞,而不幸的是,將需要一個巨大的OEM-Unicode雙向轉換表,模塊的大小將大大的增大,如表所示。因此,使能LFN的FatFs將不能在包括AVR在內(nèi)的大多數(shù)8位微控制器上使用。這也是為什么我長期以來對實現(xiàn)LFN特性不感興趣:-).

Note that the LFN feature on the FAT file system is a patent ofMicrosoft Corporation. When enable it on the commercial products, alicense from Microsoft may be required depends on the finaldestination.

請注意:FAT文件系統(tǒng)的LFN特性是微軟公司的專利。當在商用產(chǎn)品上使用時,根據(jù)最終目的的不同可能需要獲得微軟的許可證。

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
FatFS簡介
FatFs移植筆記(R0.09)
FATFS讀取數(shù)據(jù)問題(實例2) (amoBBS 阿莫電子論壇)
FatFs模塊功能配置選項
FATFS搜索文件函數(shù)
stm32的USB(二)Fatfs在stm32上的移植
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服