📄 flcustom.h
字号:
/******************************************************************************/
/* */
/* Copyright (C), 1995-2006, msystems Ltd. All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions are */
/* met: */
/* 1. Redistributions of source code must retain the above copyright notice, */
/* this list of conditions and the following disclaimer. */
/* 2. Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in the */
/* documentation and/or other materials provided with the distribution. */
/* 3. Neither the name of msystems nor the names of its contributors may be */
/* used to endorse or promote products derived from this software without */
/* specific prior written permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/******************************************************************************/
/*
* $Log: V:/PVCSDB/DiskOnChip/archives/Embedded/OS/VxWorks/1.0/examples/drivers/vxworks/custom/flcustom.h-arc $
*
* Rev 1.0 Aug 20 2006 14:11:24 Alexander.Geller
* Initial revision.
*
* Rev 1.1 Aug 03 2004 20:22:54 andrayk
* TrueFFS-6.2.2/vxWorks
*
* Rev 1.0 12 Aug 2003 01:00:54 andrayk
* Initial revision.
*/
#ifndef FLCUSTOM_H
#define FLCUSTOM_H
/*
* Driver & TrueFFS version strings
*/
#define driverVersion "1.0.0.0"
#define OSAKVersion "1.0.0"
#define DOCH_32K_SLIDING_WINDOW
/* Number of sockets
*
* Defines the maximum number of physical drives supported.
*
* The actual number of sockets depends on which socket controllers are
* actually registered and the number of sockets in the system.
*/
#define FL_SOCKETS 1
/* Number of volumes
*
* Defines the maximum number of logical drives supported.
*
* The actual number of drives depends on which socket controllers are
* actually registered , the amount of devices in the system and the
* TL format of each device.
*/
#define FL_VOLUMES (6 * FL_SOCKETS)
/* Number of Binary partitions on the DiskOnChip.
*
* Defines Maximum Number of Binary partitions on the DiskOnChip.
*
* The actual number of partitions depends on the format placed
* on each device.
*/
#define FL_BINARY_PARTITIONS (3 * FL_SOCKETS)
/* TrueFFS Heap size.
*
* TrueFFS uses the FL_MALLOC and FL_FREE routines to allocate the memory it
* requires. However if your native system does not have standard libraries,
* for dynamic memory allocation you can use the TrueFFS implementation for
* those routines called flMalloc and flFree.
*
* In such case you will need to define at compile time the heap size for
* those routines using the following macro.
*/
/* #define FL_TRUEFFS_HEAP_SIZE 200000 */ /* not used */
/* Flash Formatting (Block device format)
*
* Uncomment the following line if you need to prepare a virging DiskOnChip
* for work or in case you want to re-partiton your existing device.
*
* This routine compiles the following 3 API routines:
* flFlashFormat(), flEraseBD() and flUnformat()
*/
#define FL_FORMAT_VOLUME
/* Absolute read & write
*
* Uncomment the following line if you want to be able to read & write
* sectors by absolute sector number (i.e. without regard to files and
* directories).
*/
#define FL_ABS_READ_WRITE
/* Environment Variables
*
* Enable environment variables control of the TrueFFS features.
*
*/
#define FL_ENVIRONMENT_VARS
/* IO Controll Interface
*
* Support standard IOCTL interface. Used only by some block device drivers.
*
*/
#define FL_IOCTL_INTERFACE
/* Binary Partition
*
* Enables access to the Binary partition.
*
*/
#define BDK_ACCESS
/*
* This compilation flag has diffrent meanings in TrueFFS SDK and Boot SDK.
*
* TrueFFS SDK - Removes the flReadBBT routine.
*
* Boot SDK - Removes the support for none SPL partition handling.
*/
#define NO_READ_BBT_CODE
/* H/W OTP
*
* Enable H/W One Time Programing capability including the unique ID feature.
*
*/
#define HW_OTP
/* H/W Protection
*
* Enable H/W protection of the device.
*
*/
#define HW_PROTECTION
/* Application exit
*
* If the FLite application ever exits, it needs to call flEXit before
* exiting. Uncomment the following line to enable this.
*/
#define FL_EXIT
/* Protection agains power failures / Read after write
*
* Compiles the code for dealing with partially written pages caused by power
* failures. The actual mode of operation is controlled by an environment
* variable FL_VERIFY_WRITE_BDTL. When ENVIRONMENT_VARS is undefined this
* compilation flag will result in read after every write.
*/
#define FL_VERIFY_WRITE
/* Verify entire volume
*
* Compile the flVerifyVolume routine - this routine scans the entire disk
* partition for power failures symptoms and correct them.
*
*/
#define VERIFY_VOLUME
/* Compile the extended Disk information routine
*
* TrueFFS 6.0 and up provide an extended information routine for internal
* M-Systems utilities named flGetExtendedDiskInfo().
* To compile its code define
*/
#define FL_EXTENDED_DISK_INFO
/* Fixed or removable media
*
* If your Flash media is fixed, uncomment the following line.
*/
#define FL_FIXED_MEDIA
/* Compile the auto DPD code
*
* TrueFFS supports a mode, where TrueFFS automatically enters and exit DPD
* after every operation.
*
* The compilation below compiles that code. Note that it's operation is
* also under the affect of the dedicated environment variable.
*/
#define FL_BD_AUTO_DPD_MODE
#define FS_CREATE_LOGICAL_PARTITIONS
#define FS_FORMAT_VOLUME
#endif /* FLCUSTOM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -