fixed the coding style in components/init/components.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2528 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
4952adb4f0
commit
f29cfc5e79
@ -13,6 +13,7 @@
|
|||||||
* And all components related header files.
|
* And all components related header files.
|
||||||
* 2012-12-23 Bernard fix the pthread initialization issue.
|
* 2012-12-23 Bernard fix the pthread initialization issue.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "components.h"
|
#include "components.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -21,77 +22,76 @@
|
|||||||
void rt_components_init(void)
|
void rt_components_init(void)
|
||||||
{
|
{
|
||||||
#ifdef RT_USING_MODULE
|
#ifdef RT_USING_MODULE
|
||||||
rt_system_module_init();
|
rt_system_module_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_FINSH
|
#ifdef RT_USING_FINSH
|
||||||
/* initialize finsh */
|
/* initialize finsh */
|
||||||
finsh_system_init();
|
finsh_system_init();
|
||||||
finsh_set_device(RT_CONSOLE_DEVICE_NAME);
|
finsh_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_LWIP
|
#ifdef RT_USING_LWIP
|
||||||
/* initialize lwip stack */
|
/* initialize lwip stack */
|
||||||
/* register ethernetif device */
|
/* register ethernetif device */
|
||||||
eth_system_device_init();
|
eth_system_device_init();
|
||||||
|
|
||||||
/* initialize lwip system */
|
/* initialize lwip system */
|
||||||
lwip_system_init();
|
lwip_system_init();
|
||||||
rt_kprintf("TCP/IP initialized!\n");
|
rt_kprintf("TCP/IP initialized!\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS
|
#ifdef RT_USING_DFS
|
||||||
/* initialize the device file system */
|
/* initialize the device file system */
|
||||||
dfs_init();
|
dfs_init();
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_ELMFAT
|
#ifdef RT_USING_DFS_ELMFAT
|
||||||
/* initialize the elm chan FatFS file system*/
|
/* initialize the elm chan FatFS file system*/
|
||||||
elm_init();
|
elm_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RT_USING_DFS_NFS) && defined(RT_USING_LWIP)
|
#if defined(RT_USING_DFS_NFS) && defined(RT_USING_LWIP)
|
||||||
/* initialize NFSv3 client file system */
|
/* initialize NFSv3 client file system */
|
||||||
nfs_init();
|
nfs_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_YAFFS2
|
#ifdef RT_USING_DFS_YAFFS2
|
||||||
dfs_yaffs2_init();
|
dfs_yaffs2_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_UFFS
|
#ifdef RT_USING_DFS_UFFS
|
||||||
dfs_uffs_init();
|
dfs_uffs_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_JFFS2
|
#ifdef RT_USING_DFS_JFFS2
|
||||||
dfs_jffs2_init();
|
dfs_jffs2_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_ROMFS
|
#ifdef RT_USING_DFS_ROMFS
|
||||||
dfs_romfs_init();
|
dfs_romfs_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_DEVFS
|
#ifdef RT_USING_DFS_DEVFS
|
||||||
devfs_init();
|
devfs_init();
|
||||||
#endif
|
#endif
|
||||||
#endif /* end of RT_USING_DFS */
|
#endif /* end of RT_USING_DFS */
|
||||||
|
|
||||||
#ifdef RT_USING_NEWLIB
|
#ifdef RT_USING_NEWLIB
|
||||||
libc_system_init(RT_CONSOLE_DEVICE_NAME);
|
libc_system_init(RT_CONSOLE_DEVICE_NAME);
|
||||||
#else
|
#else
|
||||||
|
/* the pthread system initialization will be initiallized in libc */
|
||||||
/* the pthread system initialization will be initiallized in libc */
|
#ifdef RT_USING_PTHREADS
|
||||||
#ifdef RT_USING_PTHREADS
|
pthread_system_init();
|
||||||
pthread_system_init();
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_RTGUI
|
#ifdef RT_USING_RTGUI
|
||||||
rtgui_system_server_init();
|
rtgui_system_server_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_USB_HOST
|
#ifdef RT_USING_USB_HOST
|
||||||
rt_usb_host_init();
|
rt_usb_host_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user