您好,欢迎来电子发烧友网! ,新用户?[免费注册]

您的位置:电子发烧友网>源码下载>uCOS编程>

基于MCU的现flash的windos文件系统

大小:266 人气: 2010-02-08 需要积分:0
{$username}的空间

用户级别:注册会员

贡献文章:

贡献资料:

基于MCU的现flash的windos文件系统

       //数据结构与全局变量定义
  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          //通过调整文件项为03b0,从而使数据扇区刚好从Block2Sector0开始,但

非常好我支持^.^

(2) 100%

不好我反对

(0) 0%

      发表评论

      用户评论
      评价:好评中评差评

      发表评论,获取积分! 请遵守相关规定!