* @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. */
| 115 | * @return Return a pointer to the cpu object corresponding to index. |
| 116 | */ |
| 117 | struct rt_cpu *rt_cpu_index(int index) |
| 118 | { |
| 119 | return index == 0 ? &_cpu : RT_NULL; |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * @} |
no outgoing calls
no test coverage detected