diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-01 20:08:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-01 20:08:20 +0000 |
commit | 7d94dfd30b6a334a440c69707cec9246dc5c0647 (patch) | |
tree | 1278d1fa0ddf74c5719b72d26f9ee1048997d60b /nuttx/examples/mount | |
parent | e82665a8c9ce3d089e4fea4969aac21689f58947 (diff) | |
download | px4-nuttx-7d94dfd30b6a334a440c69707cec9246dc5c0647.tar.gz px4-nuttx-7d94dfd30b6a334a440c69707cec9246dc5c0647.tar.bz2 px4-nuttx-7d94dfd30b6a334a440c69707cec9246dc5c0647.zip |
Add RAM disk supportnuttx-3.11
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@765 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/mount')
-rw-r--r-- | nuttx/examples/mount/mount_main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/examples/mount/mount_main.c b/nuttx/examples/mount/mount_main.c index 978b51dce..bd792ee11 100644 --- a/nuttx/examples/mount/mount_main.c +++ b/nuttx/examples/mount/mount_main.c @@ -1,7 +1,7 @@ /**************************************************************************** * mount_main.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -54,6 +54,10 @@ * Definitions ****************************************************************************/ +#ifndef CONFIG_EXAMPLES_MOUNT_DEVNAME +# define CONFIG_EXAMPLES_MOUNT_DEVNAME "/dev/ram0" +#endif + #define TEST_USE_STAT 1 #define TEST_SHOW_DIRECTORIES 1 #define TEST_USE_STATFS 1 @@ -66,7 +70,7 @@ * Private Data ****************************************************************************/ -static const char g_source[] = "/dev/blkdev"; +static const char g_source[] = CONFIG_EXAMPLES_MOUNT_DEVNAME; static const char g_mntdir[] = "/mnt"; static const char g_target[] = "/mnt/fs"; static const char g_filesystemtype[] = "vfat"; |