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

Function demo_core

bsp/phytium/aarch32/applications/main.c:67–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void demo_core(void)
68{
69 rt_ubase_t i;
70 rt_ubase_t cpu_id = 0;
71 for (i = 0; i < RT_CPUS_NR; i++)
72 {
73 cpu_id = i;
74 rt_thread_init(&test_core[i],
75 core_thread_name[i],
76 demo_core_thread,
77 RT_NULL,
78 &core_stack[i],
79 1024,
80 20,
81 32);
82
83 rt_thread_control(&test_core[i], RT_THREAD_CTRL_BIND_CPU, (void *)cpu_id);
84 rt_thread_startup(&test_core[i]);
85 rt_thread_mdelay(500);
86 }
87}
88#endif
89
90int main(void)

Callers 1

mainFunction · 0.70

Calls 4

rt_thread_initFunction · 0.85
rt_thread_controlFunction · 0.85
rt_thread_startupFunction · 0.85
rt_thread_mdelayFunction · 0.85

Tested by

no test coverage detected