88 lines
4.3 KiB
C
88 lines
4.3 KiB
C
/*******************************************************************************
|
|
FILEIO Configuration File Template
|
|
|
|
Company:
|
|
Microchip Technology Inc.
|
|
|
|
File Name:
|
|
fileio_config_template.h
|
|
|
|
Summary:
|
|
The header file is a template example for FILEIO configuration.
|
|
|
|
Description:
|
|
The header file is a template example for FIEIO configuration.
|
|
Info in this file should be included via system_config.h
|
|
|
|
*******************************************************************************/
|
|
|
|
// DOM-IGNORE-BEGIN
|
|
/*******************************************************************************
|
|
Copyright (c) 2014 released Microchip Technology Inc. All rights reserved.
|
|
|
|
Microchip licenses to you the right to use, modify, copy and distribute
|
|
Software only when embedded on a Microchip microcontroller or digital signal
|
|
controller that is integrated into your product or third party product
|
|
(pursuant to the sublicense terms in the accompanying license agreement).
|
|
|
|
You should refer to the license agreement accompanying this Software for
|
|
additional information regarding your rights and obligations.
|
|
|
|
SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
|
|
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
|
|
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
|
|
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
|
|
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
|
|
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
|
|
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
|
|
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
|
|
*******************************************************************************/
|
|
// DOM-IGNORE-END
|
|
|
|
#ifndef _FILEIO_CONFIG_H
|
|
#define _FILEIO_CONFIG_H
|
|
|
|
// Macro indicating how many drives can be mounted simultaneously.
|
|
#define FILEIO_CONFIG_MAX_DRIVES 1
|
|
|
|
// Defines a character to use as a delimiter for directories. Forward slash ('/') or backslash ('\\') is recommended.
|
|
#define FILEIO_CONFIG_DELIMITER '/'
|
|
|
|
// Macro defining the maximum supported sector size for the FILEIO module. This value should always be 512 , 1024, 2048, or 4096 bytes.
|
|
// Most media uses 512-byte sector sizes.
|
|
#define FILEIO_CONFIG_MEDIA_SECTOR_SIZE 512
|
|
|
|
/* *******************************************************************************************************/
|
|
/************** Compiler options to enable/Disable Features based on user's application ******************/
|
|
/* *******************************************************************************************************/
|
|
|
|
/**********************************************************************
|
|
Define FILEIO_CONFIG_FUNCTION_SEARCH to disable the functions used to
|
|
search for files.
|
|
**********************************************************************/
|
|
#define FILEIO_CONFIG_SEARCH_DISABLE
|
|
|
|
// Define FILEIO_CONFIG_FUNCTION_WRITE to disable the functions that write to a drive. Disabling this feature will
|
|
// force the file system into read-only mode.
|
|
#define FILEIO_CONFIG_WRITE_DISABLE
|
|
|
|
// Define FILEIO_CONFIG_FUNCTION_FORMAT to disable the function used to format drives.
|
|
#define FILEIO_CONFIG_FORMAT_DISABLE
|
|
|
|
// Define FILEIO_CONFIG_FUNCTION_DIRECTORY to disable use of directories on your drive. Disabling this feature will
|
|
// limit you to performing all file operations in the root directory.
|
|
#define FILEIO_CONFIG_DIRECTORY_DISABLE
|
|
|
|
// Define FILEIO_CONFIG_FUNCTION_DRIVE_PROPERTIES to disable the FILEIO_DrivePropertiesGet function. This function
|
|
// will determine the properties of your device, including unused memory.
|
|
#define FILEIO_CONFIG_DRIVE_PROPERTIES_DISABLE
|
|
|
|
// Define FILEIO_CONFIG_MULTIPLE_BUFFER_MODE_DISABLE to disable multiple buffer mode. This will force the library to
|
|
// use a single instance of the FAT and Data buffer. Otherwise, it will use one FAT buffer and one data buffer per drive
|
|
// (defined by FILEIO_CONFIG_MAX_DRIVES). If you are only using one drive in your application, this option has no effect.
|
|
//#define FILEIO_CONFIG_MULTIPLE_BUFFER_MODE_DISABLE
|
|
|
|
#endif
|