2013-01-08 22:40:58 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include "board.h"
|
|
|
|
|
2015-09-30 16:26:40 +08:00
|
|
|
void platform_init(void)
|
2013-01-08 22:40:58 +08:00
|
|
|
{
|
2015-09-30 16:26:40 +08:00
|
|
|
#ifdef RT_USING_LWIP
|
|
|
|
#ifdef RT_USING_TAPNETIF
|
|
|
|
tap_netif_hw_init();
|
|
|
|
#else
|
|
|
|
pcap_netif_hw_init();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2013-01-08 22:40:58 +08:00
|
|
|
#ifdef RT_USING_DFS
|
|
|
|
/* initialize sd card */
|
|
|
|
rt_hw_sdcard_init();
|
|
|
|
|
|
|
|
#if defined(RT_USING_MTD_NAND)
|
|
|
|
rt_hw_mtd_nand_init();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(RT_USING_MTD_NOR)
|
|
|
|
sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* RT_USING_DFS */
|
|
|
|
}
|
2017-10-20 13:26:47 +08:00
|
|
|
INIT_DEVICE_EXPORT(platform_init);
|