MP3文件系统

时间:2015-09-21 10:50:17
【文件属性】:
文件名称:MP3文件系统
文件大小:35KB
文件格式:RAR
更新时间:2015-09-21 10:50:17
MP3 U盘文件系统 bit fat_install (void) { Byte i; Uint32 tot_sect; Uint32 fat_nb_sector; Uint16 bpb_rsvd_sec_cnt; Byte bpb_num_fat; Uint16 bpb_root_ent_count; /* read and check usefull MBR info */ /* go to the first partition field */ Hard_read_open(MBR_ADDRESS); Hard_load_sector(); Hard_read_close(); fat_ptr_fats = 0x01; if ((fat_buf_sector[0] == 0xEB) && (fat_buf_sector[2] == 0x90)) /* Jump instruction to boot code */ { if ((fat_buf_sector[21] & 0xF0) == 0xF0) /* Media byte */ { if ((fat_buf_sector[510] == 0x55) && (fat_buf_sector[511] == 0xAA)) /* signature */ { fat_ptr_fats = 0x00000000; /* disk may not be partitionned : first sector */ } /* is PBR */ else { return KO; /* no signature -> low level error */ }
【文件预览】:
U盘MP3文件系统
----fat32.h(9KB)
----fat.c(103KB)
----fat32.c(105KB)
----readme.txt(80B)
----fat.h(9KB)

网友评论

  • 好玩。。改明自个儿野做个试试