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

Function rt_application_init

bsp/nios_ii/application.c:84–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84int rt_application_init()
85{
86 // led_init();
87
88 //------- init led1 thread
89 rt_thread_init(&thread_led1,
90 "led1",
91 rt_thread_entry_led1,
92 RT_NULL,
93 &thread_led1_stack[0],
94 sizeof(thread_led1_stack),11,5);
95 rt_thread_startup(&thread_led1);
96
97 //------- init led2 thread
98 rt_thread_init(&thread_led2,
99 "led2",
100 rt_thread_entry_led2,
101 RT_NULL,
102 &thread_led2_stack[0],
103 sizeof(thread_led2_stack),12,5);
104 rt_thread_startup(&thread_led2);
105
106 return 0;
107}
108
109/*@}*/
110

Callers 1

rtthread_startupFunction · 0.70

Calls 2

rt_thread_initFunction · 0.85
rt_thread_startupFunction · 0.85

Tested by

no test coverage detected