2012-11-04 13:52:14 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
void rt_platform_init(void)
|
|
|
|
{
|
|
|
|
#ifdef RT_USING_DFS
|
2012-12-29 11:44:00 +08:00
|
|
|
/* initialize sd card */
|
2012-11-04 13:52:14 +08:00
|
|
|
rt_hw_sdcard_init();
|
|
|
|
|
2012-12-01 15:08:48 +08:00
|
|
|
#if defined(RT_USING_MTD_NAND)
|
2012-11-04 13:52:14 +08:00
|
|
|
rt_hw_mtd_nand_init();
|
2012-12-27 16:26:35 +08:00
|
|
|
#endif
|
2012-11-04 13:52:14 +08:00
|
|
|
|
2012-12-01 15:08:48 +08:00
|
|
|
#if defined(RT_USING_MTD_NOR)
|
2012-11-04 13:52:14 +08:00
|
|
|
sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX);
|
2012-12-27 16:26:35 +08:00
|
|
|
#endif
|
2012-11-04 13:52:14 +08:00
|
|
|
|
|
|
|
#endif /* RT_USING_DFS */
|
|
|
|
|
|
|
|
#ifdef RT_USING_RTGUI
|
2012-12-27 16:03:18 +08:00
|
|
|
/* start sdl thread to simulate an LCD */
|
|
|
|
rt_hw_sdl_start();
|
2012-11-04 13:52:14 +08:00
|
|
|
#endif /* RT_USING_RTGUI */
|
|
|
|
|
2012-12-29 11:44:00 +08:00
|
|
|
#ifdef _WIN32
|
2012-12-27 16:26:35 +08:00
|
|
|
rt_thread_idle_sethook(rt_hw_win32_low_cpu);
|
2012-12-27 14:58:58 +08:00
|
|
|
#endif
|
2012-11-04 13:52:14 +08:00
|
|
|
}
|
|
|
|
|