📄 fs_int.h
字号:
/*
**********************************************************************
* Micrium, Inc.
* 949 Crestview Circle
* Weston, FL 33327-1848
*
* uC/FS
*
* (c) Copyright 2001 - 2003, Micrium, Inc.
* All rights reserved.
*
***********************************************************************
----------------------------------------------------------------------
File : fs_int.h
Purpose : Internals used accross different layers of the file system
----------------------------------------------------------------------
Known problems or limitations with current version
----------------------------------------------------------------------
None.
---------------------------END-OF-HEADER------------------------------
*/
#ifndef _FS_INT_H_
#define _FS_INT_H_
/*********************************************************************
*
* Global data types
*
**********************************************************************
*/
#ifndef FS_USE_LB_READCACHE
#define FS_USE_LB_READCACHE 0
#endif
#if FS_USE_LB_READCACHE
#ifndef FS_LB_BLOCKSIZE
#define FS_LB_BLOCKSIZE 0x200
#endif
typedef struct {
FS_u32 BlockId;
char aBlockData[FS_LB_BLOCKSIZE];
} FS__CACHE_BUFFER;
typedef struct {
const int MaxCacheNum;
int CacheIndex;
FS__CACHE_BUFFER *const pCache;
} FS__LB_CACHE;
#endif /* FS_USE_LB_READCACHE */
typedef struct {
const char *const devname;
const FS__fsl_type *const fs_ptr;
const FS__device_type *const devdriver;
#if FS_USE_LB_READCACHE
FS__LB_CACHE *const pDevCacheInfo;
#endif /* FS_USE_LB_READCACHE */
const void *const data;
} FS__devinfo_type;
/*********************************************************************
*
* Externals
*
**********************************************************************
*/
/* fs_info.c */
extern const FS__devinfo_type *const FS__pDevInfo;
extern const unsigned int FS__maxdev;
extern const unsigned int FS__fat_maxunit;
#endif /* _FS_INT_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -