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

📄 fatsupport.h

📁 本程序为ST公司开发的源代码
💻 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 + -