git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9612 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0453f8b436
commit
05fadfb533
|
@ -49,6 +49,33 @@
|
||||||
/* Driver local functions. */
|
/* 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. */
|
/* Driver exported functions. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
/* Driver constants. */
|
/* Driver constants. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#define MFS_BANK_MAGIC_0 0xEC705ADEU
|
||||||
|
#define MFS_BANK_MAGIC_1 0xF0339CC5U
|
||||||
|
#define MFS_RECORD_MAGIC 0x5FAEU
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -122,6 +126,8 @@ typedef struct {
|
||||||
uint32_t magic2;
|
uint32_t magic2;
|
||||||
/**
|
/**
|
||||||
* @brief Usage counter of the bank.
|
* @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;
|
uint32_t counter;
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue