4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-15 08:19:23 +08:00
goprife@gmail.com 2eefeab242 update app code in simulator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2421 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-16 12:21:28 +00:00

33 lines
602 B
C

#include <rtthread.h>
#include "board.h"
void rt_platform_init(void)
{
#ifdef RT_USING_DFS
/* initilize sd card */
#ifdef RT_USING_DFS_ELMFAT
rt_hw_sdcard_init();
#endif
#if defined(RT_USING_MTD_NAND) && defined(RT_USING_DFS_UFFS)
rt_hw_mtd_nand_init();
#endif
#if defined(RT_USING_MTD_NOR) && defined(RT_USING_DFS_JFFS2)
sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX);
#endif
#endif /* RT_USING_DFS */
#ifdef RT_USING_RTGUI
/* initilize sdl */
sdl_start();
#endif /* RT_USING_RTGUI */
rt_thread_delay(50);
rt_device_init_all();
}