add devfs initialization in application.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1034 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-10-29 06:01:04 +00:00
parent e91e82d166
commit 969b9be9a7
3 changed files with 16 additions and 0 deletions

View File

@ -71,6 +71,17 @@ void rt_init_thread_entry(void* parameter)
else
rt_kprintf("File System initialzation failed!\n");
#endif
#if defined(RT_USING_DFS_DEVFS)
devfs_init();
if (dfs_mount(RT_NULL, "/dev", "devfs", 0, 0) == 0)
rt_kprintf("Device File System initialized!\n");
else
rt_kprintf("Device File System initialzation failed!\n");
/* init libc */
libc_system_init("uart0");
#endif
}
#endif

View File

@ -148,8 +148,10 @@ void rt_hw_board_init()
/* initialize uart */
rt_hw_uart_init();
#ifdef RT_USING_RTGUI
/* init virtual keypad */
rt_hw_key_init();
#endif
/* initialize mmu */
rt_hw_mmu_init();

View File

@ -9,6 +9,7 @@ RT_USING_DFS_ELMFAT = False
RT_USING_DFS_YAFFS2 = False
RT_USING_DFS_NFS = False
RT_USING_DFS_ROMFS = False
RT_USING_DFS_DEVFS = False
RT_USING_LWIP = False
RT_USING_WEBSERVER = False
RT_USING_RTGUI = False
@ -51,6 +52,8 @@ if rtconfig_ns.has_key('RT_USING_DFS'):
RT_USING_DFS_NFS = True
if rtconfig_ns.has_key('RT_USING_DFS_ROMFS'):
RT_USING_DFS_ROMFS = True
if rtconfig_ns.has_key('RT_USING_DFS_DEVFS'):
RT_USING_DFS_DEVFS = True
# lwip options
if rtconfig_ns.has_key('RT_USING_LWIP'):