FreeCalypso > hg > freecalypso-citrine
diff services/ffs/ramffs.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/services/ffs/ramffs.h Thu Jun 09 00:02:41 2016 +0000 @@ -0,0 +1,16 @@ +/* + * This FFS implementation header file is a FreeCalypso addition. + * Here we have some preprocessor magic and extern declarations + * for the FFS-in-RAM configuration which are needed at both + * "flash driver" and "FFS configuration" abstraction levels. + */ + +#include "../../include/config.h" +#if FFS_IN_RAM + +#define RAMFFS_BLKSIZE_BYTES (1 << RAMFFS_BLKSIZE_LOG2) +#define RAMFFS_TOTAL_SIZE (RAMFFS_BLKSIZE_BYTES * RAMFFS_NBLOCKS) + +extern char _RAMFFS_area[RAMFFS_TOTAL_SIZE]; + +#endif /* FFS_IN_RAM */