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

📄 pcconf.h

📁 ertfs文件系统里面既有完整ucos程序
💻 H
字号:
/*****************************************************************************
*Filename: PCCONF.H - RTFS tuning constants
*
*
* Description:
*   This file contains tuning constants for configuring RTFS.
*   It is included by pcdisk.h.
*
****************************************************************************/

#ifndef __PCCONF__
#define __PCCONF__ 1

#if (INCLUDE_ERTFS)

/* The following five constants when set to 0 selectively exclude portions
   of RTFS to save executable image size  */

/* Note: After we implemented VFAT we learned that Microsoft patented
   the Win95 VFS implementation. US PATENT # 5,758,352.
   Leaving VFAT set to zero will exclude potential patent infringment
   problems.
   3-19-99
*/

#define VFAT              1  /* Set to 1 to support long filenames */
#define FAT32             1  /* Set to 1 to support 32 bit FATs */
#define RTFS_SHARE        0  /* Set to 0 to disable file share modes saves ~0.5 K */
#define RTFS_SUBDIRS      1  /* Set to 0 to disable subdir support saves 2.5 K */
#define RTFS_WRITE        1  /* Set to 0 to disable write support saves 5.5 K */


#if (VFAT)
typedef unsigned short int UNICODE;
#define FILENAMESIZE    256
#else
#define FILENAMESIZE      9
#endif

#if (defined(POLLOS))
#define NUM_USERS         1  /* Must be one for POLLOS */
#else
#define NUM_USERS         5  /* Maximum # of tasks that may use the file
                                system */
#endif

#define NBLKBUFFS        10  /* Number of blocks in the buffer pool. Uses 532
                                bytes per block. Impacts performance during
                                directory traversals Since disk Reads on
                                Sandisk is very fast we can keep this low
                                (must be at least 1) */

#define NUSERFILES       10  /* Maximum Number of open Files */

#define FAT_BUFFER_SIZE   4  /* Size of the internal FAT buffer in 512 byte
                                chunks (ie 12 = 12 * 512 bytes. We statically
                                allocate arrays based on this in pc_memry.c
                                Small values should be OK in the Sandisk
                                environment since IO is fast. Note that
                                reducing the Buffer size will increase the
                                amount of fat flushing. Must be at least 1. */

#if (VFAT)
#define EMAXPATH        260  /* Maximum path length. Change if you like */
#else
#define EMAXPATH        148  /* Maximum path length. Change if you like */
#endif

/* ***************************************************** */
/* Set to  1 to include CDFS                             */
/* ***************************************************** */
#define INCLUDE_CDFS 0


/* ***************************************************** */
/* DEVICES                                               */
/* ***************************************************** */
/* Device access is supposed to be purely table driven with             */
/* the responsibility for initializing the device table resting         */
/* on the routine pc_ertfs_init(void) in pc_init.c. But for floppy      */
/* and IDE drives and the PCMCIA subsystem there are some resources     */
/* in other files that are only required if these devices are included  */
/* so we define them here */

/* ***************************************************** */
/* ATA                                                   */
/* ***************************************************** */
#define USE_ATA                 1  /* If 1 provide ATA drivers */
#define N_ATA_CONTROLLERS       2  /* If USE_ATA is 1 this is the number of controllers */

/* ***************************************************** */
/* Set to  1 to include NAND                             */
/* ***************************************************** */
#define USE_NAND				1

/* Constants used by pcmctrl.c */

/* Note: The PCMCIA configuration section is in the header file PCMCIA.H */

/* The following constants may be found in pcmci.h
	ISA_MEM_WINDOW_0
	ISA_MEM_WINDOW_1
	MGMT_INTERRUPT
	NSOCKET 2
*/


/* ***************************************************** */
/* DEVICES -- MAXIMUM NUMBER OF UNITS                    */
/* ***************************************************** */


/* Number of drives to support A:,B:,C: .... */
#define NDRIVES              8


/* ***************************************************** */
/* DERIVED CONSTANTS                                     */
/* ***************************************************** */

/* Directory Object Needs. Conservative guess is One CWD per user per drive +
   One per file + one per User for directory traversal */
/* This is calculated... do not change */
#define NFINODES   (32 + NUM_USERS*NDRIVES + NUM_USERS + NUSERFILES)
#define NDROBJS    (32 + NUM_USERS*NDRIVES + NUM_USERS + NUSERFILES)

#if !defined(INCLUDE_FAT32_BOOT_CODE)
#define INCLUDE_FAT32_BOOT_CODE  0
#endif



#endif  /* INCLUDE_ERTFS */
#endif /* __PCCONF__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -