📄 fatsupport.h
字号:
/************************************************** * * fatsupport.h * * CVS ID: $Id: * Author: Michal Chlapik [ MCH ] - STM * Date: $Date: 2006/12/05 15:44:18 $ * Revision: $Revision: 1.7 $ * * Description: * * <...> * *************************************************** * * COPYRIGHT (C) ST Microelectronics 2005 * All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: FATsupport.h,v $ * Revision 1.7 2006/12/05 15:44:18 chlapik * fixed bug - define for BLOCKS_PER_512BSector missed brackets * * Revision 1.6 2006/09/15 19:46:47 belardi * Merged the m8_cav2_cm80506_cs3563. * - moved code outside of #ifdef * * ***************************************************/ #ifndef __FATSUPPORT_H#define __FATSUPPORT_H#include "configuration.h"#define BLOCK_SIZE 512 // = 2^n <= 512#define BLOCKS_PER_512BSector (512/BLOCK_SIZE)#if (HAVE_FAT)#include "apdevsys.h"#include "filesys.h"#include "FAT.h"#include <stdio.h>typedef struct { uint32 FirstSectorOfCluster; uint32 ClusterOffset; uint16 num;} Get_BytesParamsStruct;uint32 get_val_log2(uint32 val);GRESULT Get_SectorRel(uint8 *Sectorbuffer, uint32 sector_num, FS_DESCRIPTOR *fsd);GRESULT Get_Bytes(uint8 *buf, uint8 *SectorBuffer, Get_BytesParamsStruct *Get_BytesParams, FS_DESCRIPTOR *fsd);GRESULT Get_SectorAbs(uint8 *Sectorbuffer, uint32 sector_num, FS_DESCRIPTOR *fsd);#endif /* HAVE_FAT */#endif /* __FATSUPPORT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -