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

Function rt_cpu_index

src/cpu_up.c:117–120  ·  view source on GitHub ↗

* @brief This fucntion will return the cpu object corresponding to index. * * @param index is the index of target cpu object. * * @return Return a pointer to the cpu object corresponding to index. */

Source from the content-addressed store, hash-verified

115 * @return Return a pointer to the cpu object corresponding to index.
116 */
117struct rt_cpu *rt_cpu_index(int index)
118{
119 return index == 0 ? &_cpu : RT_NULL;
120}
121
122/**
123 * @}

Callers 10

rt_thread_get_usageFunction · 0.70
rt_signal_checkFunction · 0.70
rt_thread_idle_initFunction · 0.70
rt_system_scheduler_initFunction · 0.70
rt_scheduleFunction · 0.70
seq_showFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected