MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_init_thread_entry

Function rt_init_thread_entry

bsp/lm4f232/applications/application.c:38–70  ·  view source on GitHub ↗

thread phase init */

Source from the content-addressed store, hash-verified

36
37/* thread phase init */
38void 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
72int rt_application_init()
73{

Callers

nothing calls this directly

Calls 5

rt_kprintfFunction · 0.85
lwip_sys_initFunction · 0.85
dfs_initFunction · 0.50
elm_initFunction · 0.50
dfs_mountFunction · 0.50

Tested by

no test coverage detected