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

Function rt_init_thread_entry

bsp/sam7x/applications/application.c:39–72  ·  view source on GitHub ↗

thread phase init */

Source from the content-addressed store, hash-verified

37
38/* thread phase init */
39void 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
74int rt_application_init()
75{

Callers

nothing calls this directly

Calls 6

rt_kprintfFunction · 0.85
eth_system_device_initFunction · 0.85
sam7xether_registerFunction · 0.85
lwip_sys_initFunction · 0.85
dfs_initFunction · 0.50
dfs_mountFunction · 0.50

Tested by

no test coverage detected