diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-12 16:21:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-12 16:21:19 +0000 |
commit | 473e28a6eebe47b386e625fd33b1c13b60f8e108 (patch) | |
tree | e713f6ec7e54668042ad6ab0f339c87ae16a1fe5 /nuttx/arch/sim/src/up_internal.h | |
parent | da889ad22acc0c476b1485b3fd6959825d30240d (diff) | |
download | px4-nuttx-473e28a6eebe47b386e625fd33b1c13b60f8e108.tar.gz px4-nuttx-473e28a6eebe47b386e625fd33b1c13b60f8e108.tar.bz2 px4-nuttx-473e28a6eebe47b386e625fd33b1c13b60f8e108.zip |
simulated block device now contains a VFAT formated disk image
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@212 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim/src/up_internal.h')
-rw-r--r-- | nuttx/arch/sim/src/up_internal.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/nuttx/arch/sim/src/up_internal.h b/nuttx/arch/sim/src/up_internal.h index 5de1d7687..d7e6588cb 100644 --- a/nuttx/arch/sim/src/up_internal.h +++ b/nuttx/arch/sim/src/up_internal.h @@ -65,6 +65,20 @@ #define SIM_HEAP_SIZE (4*1024*1024) +/* These definitions characterize the compressed filesystem image */ + +#define BLOCK_COUNT 1024 +#define SECTOR_OF_BACKUPT 6 +#define NUMBER_OF_FATS 2 +#define FAT_SIZE 32 +#define NUM_HIDDEN_SECTORS 0 +#define VOLUME_NAME "NuttXTestVol" +#define USE_WHOLE_DEVICE 1 +#define ROOT_DIR_ENTRIES 512 +#define RESERVED_SECTORS 32 +#define SECTORS_PER_CLUSTER 4 +#define LOGICAL_SECTOR_SIZE 512 + /************************************************************************** * Public Types **************************************************************************/ @@ -78,15 +92,20 @@ **************************************************************************/ #ifndef __ASSEMBLY__ + /* up_setjmp.S ************************************************************/ extern int up_setjmp(int *jb); extern void up_longjmp(int *jb, int val) __attribute__ ((noreturn)); -/* up_devconsole **********************************************************/ +/* up_devconsole.c ********************************************************/ extern void up_devconsole(void); extern void up_registerblockdevice(void); +/* up_deviceimage.c *******************************************************/ + +extern char *up_deviceimage(void); + #endif /* __ASSEMBLY__ */ #endif /* __ARCH_UP_INTERNAL_H */ |