weAutSys' file system adaption to a small memory card
This file contains the definitions for weAutSys' adaption of ChaN's fatFS to the (low level) services to communicate with a small memory card (SMC) via SPI.
This is system software and must not be modified for user or application programs.
This file is part of weAutSys <weinert-automation.de>
Copyright © 2012 Albrecht Weinert, Bochum
Data Structures | |
struct | FS_WORK |
Work space for file system operations (structure FS_WORK) More... | |
Defines | |
#define | fMountSMC() |
Mount / initialise the SMC file system as drive 0. | |
#define | lockFsWorkFor(ls) |
Set the lock on fsWork. | |
#define | SMC_FS_CLIUSE 0xCB |
SMC file system (structure) locked for (application) CLI. | |
#define | SMC_FS_SYSTUSE 0xFB |
SMC file system (structure) locked for runtime / system use. | |
#define | unlockFsWorkFrom(ls) |
Unset the lock on fsWork. | |
Functions | |
char * | formFATdate (char *s, uint16_t fatDate) |
Format a FAT date. | |
char * | formFATtime (char *s, uint16_t fatTime) |
Format a FAT time. | |
uint8_t | stdPutFilInf (FILINFO *filInf, const uint8_t inf) |
Write file info data to standard output. | |
Variables | |
FATFS | fileSystSMC |
File system object (the one for SMC) | |
FS_WORK | fsWork |
Work space for file system operations. |