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

Function demo_core_thread

bsp/ft2004/applications/main.c:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static rt_uint8_t core_stack[RT_CPUS_NR][1024];
27
28static void demo_core_thread(void *parameter)
29{
30 rt_base_t level;
31 while (1)
32 {
33 /* code */
34 level = rt_cpus_lock();
35 rt_kprintf("Hi, core%d \r\n", FCpu_IdGet());
36 rt_cpus_unlock(level);
37 rt_thread_mdelay(20000);
38 }
39}
40
41void demo_core(void)
42{

Callers

nothing calls this directly

Calls 5

rt_cpus_lockFunction · 0.85
rt_kprintfFunction · 0.85
FCpu_IdGetFunction · 0.85
rt_cpus_unlockFunction · 0.85
rt_thread_mdelayFunction · 0.85

Tested by

no test coverage detected