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