fs_port.h
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:3k
- /*
- **********************************************************************
- * Micrium, Inc.
- * 949 Crestview Circle
- * Weston, FL 33327-1848
- *
- * uC/FS
- *
- * (c) Copyright 2001 - 2003, Micrium, Inc.
- * All rights reserved.
- *
- ***********************************************************************
- ----------------------------------------------------------------------
- File : fs_port.h
- Purpose : Architecture dependend defines for the file system
- This header defines basic data types and access macros
- used by the file system. Depending on your CPU/compiler,
- you may have to modify this file.
- ----------------------------------------------------------------------
- Known problems or limitations with current version
- ----------------------------------------------------------------------
- None.
- ---------------------------END-OF-HEADER------------------------------
- */
- #ifndef _FS_PORT_H_
- #define _FS_PORT_H_
- /*********************************************************************
- *
- * define global data types
- *
- **********************************************************************
- These defines will work for most 8/16/32 bit CPUs. Please check
- your compiler manual if you are not sure.
- */
- #define FS_size_t unsigned int /* 32 bit unsigned */
- #define FS_u32 unsigned int /* 32 bit unsigned */
- #define FS_i32 signed int /* 32 bit signed */
- #define FS_u16 unsigned short /* 16 bit unsigned */
- #define FS_i16 signed short /* 16 bit signed */
- #define FS_i8 signed char /* 8 bit signed */
- #define FS_u8 unsigned char /* 8 bit unsigned */
- /*
- Some CPUs have default character pointers, which are unable to access
- the complete CPU address space. The following define is used for character
- pointers, which must be able to access the complete address space.
- */
- #define FS_FARCHARPTR char * /* far character pointer */
- /*********************************************************************
- *
- * #define access macros
- *
- **********************************************************************
- Version V1.30 and older require data access macros
- FS__r_u32
- FS__w_u32
- FS__r_u16
- FS__w_u16
- and a constant
- FS_LITTLE_ENDIAN
- These are obsolote. Of course it does not hurt, if you leave
- an old fs_port.h unchanged.
- */
- #endif /* _FS_PORT_H_ */