⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fs_variable.lst

📁 基于uCOS/II制作的MP3
💻 LST
字号:
C51 COMPILER V7.50   FS_VARIABLE                                                           06/03/2006 10:32:56 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE FS_VARIABLE
OBJECT MODULE PLACED IN fs_variable.obj
COMPILER INVOKED BY: C:\Program Files\keil\C51\BIN\C51.EXE modules\file\fs_variable.c LARGE BROWSE DEBUG OBJECTEXTEND PR
                    -INT(.\fs_variable.lst) OBJECT(fs_variable.obj)

line level    source

   1          /*C**************************************************************************
   2          * NAME:         fs_variable.c
   3          *----------------------------------------------------------------------------
   4          * Copyright (c) 2003 Atmel.
   5          *----------------------------------------------------------------------------
   6          * RELEASE:      snd1c-refd-nf-4_0_3      
   7          * REVISION:     1.3     
   8          *----------------------------------------------------------------------------
   9          * PURPOSE:
  10          * File system variable definition
  11          * 
  12          * NOTES:
  13          *   Arrangement :
  14          *     FAT12/16 only
  15          *     FAT32 only
  16          *     FAT32 and ISO 9660
  17          *     FAT12/16 and ISO 9660 ?
  18          *****************************************************************************/
  19          
  20          /*_____ I N C L U D E S ____________________________________________________*/
  21          
  22          #include "config.h"                         /* system configuration */
  23          #include "..\mem\hard.h"                    /* low level function definition */
  24          #include "file.h"                           /* file function definition */
  25          
  26           // #include "fat32.h"                          /* fat32 file-system definition */
  27            #include "fat.h"
  28          
  29          
  30          
  31          
  32          
  33          /*_____ M A C R O S ________________________________________________________*/
  34          
  35          
  36          /*_____ D E F I N I T I O N ________________________________________________*/
  37          
  38          
  39          
  40          extern  pdata Byte    gl_buffer[];
  41          
  42          
  43          /* shared file system variables */
  44          
  45          /* disk management */
  46          data  Uint32  fat_ptr_data;                     /* address of the first byte 
  47                                                          /* of data */
  48          xdata Byte fat_buf_sector[512];                 /* 512 bytes buffer */
  49          
  50          /* directory management */
  51          idata Uint16  fat_dclust_byte_count;/* byte counter in directory sector */
  52          idata Uint32  fat_dir_current_sect; /* sector of selected entry in dir list */
  53          xdata Uint16  fat_dir_list_index;   /* index of current entry in dir list */
  54          xdata Uint32  fat_dir_start_sect;   /* start sector of dir list */
C51 COMPILER V7.50   FS_VARIABLE                                                           06/03/2006 10:32:56 PAGE 2   

  55          xdata Uint16  fat_dir_list_last;    /* index of last entry in dir list */
  56          idata Uint16  fat_dchain_index;     /* the number of the fragment of the dir, in fact */
  57                                              /* the index of the table in the cluster chain */
  58          idata  Uint16  fat_fchain_nb_clust; /* the offset of the cluster from the first cluster */
  59                                              /* of the file fragment */
  60          
  61          
  62          /* file management */
  63          data  Uint16   fat_fclust_byte_count;     /* byte counter in file cluster */
  64          xdata Byte current_ext;
  65          xdata char  ext[3];                       /* file extension (limited to 3 characters) */
  66          
  67          char  pdata *lfn_name = &(gl_buffer[32]); /* long filename limited to MAX_FILENAME_LEN chars */
  68          Uint16  song_name[11];
  69          bit bdata song_name_style;
  70          
  71          /* Mode repeat A/B variables */
  72          xdata  Byte    fat_fchain_index_save;         
  73          xdata  Byte    fat_fchain_nb_clust_save;
  74          xdata  Uint16  fat_fclust_byte_count_save;
  75          
  76          
  77          
  78          
  79          /* Specific variables for fat file system */
  80          //#if ((MEM_CHIP_FS == FS_FAT_32) || (MEM_CHIP_FS == FS_FAT_12_16) || (MEM_CARD_FS == FS_FAT_32) || (MEM_C
             -ARD_FS == FS_FAT_12_16))
  81          /* disk management */
  82          data  Uint32  fat_ptr_fats;         /* address of the first byte of FAT */
  83          data  Uint32  fat_ptr_rdir;
  84          data  Byte    fat_cluster_size;     /* cluster size (sector count) */
  85          idata Byte    fat_cluster_mask;     /* mask for end of cluster test */
  86          
  87          
  88          bdata bit     fat_is_fat16;         /* TRUE: FAT16 - FALSE: FAT12 */
  89          bdata bit     fat_open_mode;        /* READ or WRITE */
  90          bdata bit     fat_2_is_present;     /* TRUE: 2 FATs - FALSE: 1 FAT */
  91          bdata bit     flag_end_disk_file;
  92          
  93          xdata Uint32  fat_count_of_clusters;/* number of cluster - 2 */
  94          xdata Union32 fat_file_size;
  95          xdata Uint32  fat_fat_size;         /* FAT size in sector count */
  96          
  97          /* directory management */
  98          xdata fat_st_clust_chain dclusters[MAX_DIR_FRAGMENT_NUMBER];
  99                                              /* cluster chain for the current directory */
 100          bdata bit     dir_is_root;          /* TRUE: point the root directory  */
 101                                                       
 102          idata Byte    fat_dchain_nb_clust;  /* the offset of the cluster from the first cluster */
 103                                              /* of the dir fragment */
 104          xdata Byte    fat_last_dclust_index;/* index of the last cluster in directory chain */
 105          xdata Uint32  fat_dir_current_offs; /* entry offset from fat_dir_current_sect */
 106          xdata fat_st_cache   fat_cache;     /* The cache structure, see the .h for more info */
 107          
 108          
 109          /* file management */
 110          xdata fat_st_clust_chain fclusters[MAX_FILE_FRAGMENT_NUMBER];
 111                                              /* cluster chain for the current file */
 112          idata Byte    fat_last_clust_index;/* index of the last cluster in file chain */
 113          idata Byte    fat_fchain_index;    /* the number of the fragment of the file, in fact */
 114                                              /* the index of the table in the cluster chain */
 115                        
C51 COMPILER V7.50   FS_VARIABLE                                                           06/03/2006 10:32:56 PAGE 3   

 116          xdata Uint32  fat_current_file_size;
 117          xdata Uint32  fat_rootclus_fat32;  /* root cluster address */
 118          bdata bit fat_last_dir_cluster_full;
 119          bdata bit fat_no_entries_free;
 120          xdata Uint16 fat_total_clusters;
 121          xdata Uint32 last_free_cluster;
 122          
 123          xdata Uint16  fat_root_entry;       /* position in root dir */
 124          
 125          
 126          idata Uint16 fat_current_end_entry_position;
 127          idata Uint16 fat_current_start_entry_position;
 128          xdata Uint16 fat_nb_deleted_entries;
 129          xdata Uint16 fat_nb_total_entries;
 130          
 131          bdata bit    fat_is_fat32;                   /* TRUE: FAT32 - FALSE: FAT12/FAT16 */
 132          
 133          xdata Uint32 fat_bpb_add;
 134          
 135          
 136          //#endif
 137          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   1071    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     15    ----
   IDATA SIZE       =     18    ----
   BIT SIZE         =      9    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -