* @brief Get logical CPU ID * * @return logical CPU ID * * @note This function only has MP version. */
| 260 | * @note This function only has MP version. |
| 261 | */ |
| 262 | rt_base_t rt_cpu_get_id(void) |
| 263 | { |
| 264 | |
| 265 | RT_ASSERT(rt_sched_thread_is_binding(RT_NULL) || |
| 266 | rt_hw_interrupt_is_disabled() || |
| 267 | !rt_scheduler_is_available()); |
| 268 | |
| 269 | return rt_hw_cpu_id(); |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * @} |
no test coverage detected