Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.5 Configuring the Library
Describes how to configure the File I/O library.
Modules
Name Description
File I/O Configuration Options Describes File I/O Layer configuration options.
Description
The configuration of the File I/O library is based on the files system_config.h and fileio_config.h.
These header files contain the configuration selection for the File I/O library. Based on the selections made, the File I/O
library will support or not support selected features. These configuration settings will apply to all instances of the File I/O
module.
These headers can be placed anywhere; however, the path of these headers needs to be present in the include search path
for a successful build.
Each driver may require additional configuration files/options. For example, the SD-SPI physical layer requires the definitions
given in sd_spi_config.h.
1.5.1 File I/O Configuration Options
Describes File I/O Layer configuration options.
Macros
Name Description
FILEIO_CONFIG_MAX_DRIVES Macro indicating how many drives can be mounted simultaneously.
FILEIO_CONFIG_DELIMITER Defines a character to use as a delimiter for directories. Forward slash
('/') or backslash ('\') is recommended.
FILEIO_CONFIG_MEDIA_SECTOR_SIZE 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.
_FILEIO_CONFIG_H This is macro _FILEIO_CONFIG_H.
Description
This section describes the configuration options used by the File I/O layer of this library. Typically, these options are defined
in fileio_config.h, which is included in system_config.h. The system_config.h header is then included in all library files.
Some system-specific macros or functions used by the library (like the clock configuration macros/functions) are defined in
system.c/h. The system.h file is also included in the library by files that use these functions.
1.5.1.1 Clock Configuration
Describes required clock configuration options for the File I/O library.
Macros
Name Description
SYS_CLK_FrequencySystemGet The File I/O library requires the user to define the system clock frequency
(Hz)
1.5 Configuring the Library MLA - File I/O Library Help File I/O Configuration Options
13
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf