thread phase init */
| 37 | |
| 38 | /* thread phase init */ |
| 39 | void rt_init_thread_entry(void *parameter) |
| 40 | { |
| 41 | /* Filesystem Initialization */ |
| 42 | #ifdef RT_USING_DFS |
| 43 | { |
| 44 | /* init the device filesystem */ |
| 45 | dfs_init(); |
| 46 | /* init the efsl filesystam*/ |
| 47 | efsl_init(); |
| 48 | |
| 49 | /* mount sd card fat partition 1 as root directory */ |
| 50 | if (dfs_mount("sd0", "/", "efs", 0, 0) == 0) |
| 51 | rt_kprintf("File System initialized!\n"); |
| 52 | else |
| 53 | rt_kprintf("File System init failed!\n"); |
| 54 | } |
| 55 | #endif |
| 56 | |
| 57 | /* LwIP Initialization */ |
| 58 | #ifdef RT_USING_LWIP |
| 59 | { |
| 60 | extern void lwip_sys_init(void); |
| 61 | |
| 62 | eth_system_device_init(); |
| 63 | |
| 64 | /* register AT91 EMAC device */ |
| 65 | sam7xether_register("E0"); |
| 66 | |
| 67 | /* init lwip system */ |
| 68 | lwip_sys_init(); |
| 69 | rt_kprintf("TCP/IP initialized!\n"); |
| 70 | } |
| 71 | #endif |
| 72 | } |
| 73 | |
| 74 | int rt_application_init() |
| 75 | { |
nothing calls this directly
no test coverage detected