git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9612 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-06-09 17:26:22 +00:00
parent 0453f8b436
commit 05fadfb533
2 changed files with 33 additions and 0 deletions

View File

@ -49,6 +49,33 @@
/* Driver local functions. */
/*===========================================================================*/
#if (MFS_CFG_ID_CACHE_SIZE > 0) || defined(__DOXYGEN__)
void mfs_cache_init(MFSDriver *devp) {
(void)devp;
}
mfs_cached_id_t *mfs_cache_find_id(MFSDriver *devp, uint32_t id) {
(void)devp;
(void)id;
return NULL;
}
void mfs_cache_update_id(MFSDriver *devp, uint32_t id) {
(void)devp;
(void)id;
}
void mfs_cache_erase_id(MFSDriver *devp, uint32_t id) {
(void)devp;
(void)id;
}
#endif /* MFS_CFG_ID_CACHE_SIZE > 0 */
/*===========================================================================*/
/* Driver exported functions. */
/*===========================================================================*/

View File

@ -33,6 +33,10 @@
/* Driver constants. */
/*===========================================================================*/
#define MFS_BANK_MAGIC_0 0xEC705ADEU
#define MFS_BANK_MAGIC_1 0xF0339CC5U
#define MFS_RECORD_MAGIC 0x5FAEU
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@ -122,6 +126,8 @@ typedef struct {
uint32_t magic2;
/**
* @brief Usage counter of the bank.
* @details This value is increased each time a bank swap is performed. It
* indicates how much wearing the flash has already endured.
*/
uint32_t counter;
/**