您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>uCOS編程>

基于MCU的現(xiàn)flash的windos文件系統(tǒng)

大小:266 人氣: 2010-02-08 需要積分:0
{$username}的空間

用戶級別:注冊會員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

基于MCU的現(xiàn)flash的windos文件系統(tǒng)

?????? //數(shù)據(jù)結(jié)構(gòu)與全局變量定義
? 18?????????
? 19????????? U8 BPB_Data[512]=
? 20????????? {
? 21????????? 0xeb,0x3c,0x90,//?????? Offset_U8_BS_jmpBoot??????????? 0
? 22????????? 'F','r','a','n','k','w','x','j',// Offset_U8_BS_OEMName???????? 3
? 23????????? 0x00,0x02,// Offset_U16_BPB_BytsPerSec? 11????? //Count of bytes per sector. This value may take on only the? //
? 24????????? //512?????????????????????????????????????????????????????????????????? //following values: 512, 1024, 2048 or 4096. If maximum?????? //
? 25????????????????????????????????????????????????????????????????????????????????????????? //compatibility is desired, only the value 512 should be used.//
? 26????????? 64,// Offset_U8_BPB_SecPerClus? 13????? //Number of sectors per allocation unit. This value must be a //
? 27????????????????????????????????????????????????????????????????????????????????????????? //power of 2 that is greater than 0. The legal values are 1,? //
? 28????????????????????????????????????????????????????????????????????????????????????????? //????? 2, 4, 8, 16, 32, 64,and 128.??????????????????????????????? //
? 29????????? 0x1,0x00,// Offset_U16_BPB_RsvdSecCnt?? 14????? //Number of reserved sectors in the Reserved region of the??? //
? 30????????????????????????????????????????????????????????????????????????????????????????? //volume starting at the first sector of the volume.For FAT32 //
? 31????????????????????????????????????????????????????????????????????????????????????????? //volumes, this value is typically 32.??????????????????????? //
? 32????????? 0x02,// Offset_U8_BPB_NumFATs?????????? 16????? //The count of FAT data structures on the volume.???????????? //
? 33????????? 0xb0,0x03,// Offset_U16_BPB_RootEntCnt? 17????? //Is only useful for FAT12 and FAT16 volumes.???????????????? //
? 34????????? //????????????????????????????????????????????????????????????????????????????? //For FAT32 volumes,this field must be set to 0.????????????? //
? 35????????? //通過調(diào)整文件項(xiàng)為03b0,從而使數(shù)據(jù)扇區(qū)剛好從Block2Sector0開始,但

非常好我支持^.^

(2) 100%

不好我反對

(0) 0%

      發(fā)表評論

      用戶評論
      評價(jià):好評中評差評

      發(fā)表評論,獲取積分! 請遵守相關(guān)規(guī)定!

      ?