static void rt_thread_idle_entry(void parameter)
{
#ifdef RT_USING_SMP
if (rt_hw_cpu_id() != 0)
{
while (1)
{
rt_hw_secondary_cpu_idle_exec();
}
}
#endif / RT_USING_SMP */
while (1)
{
#ifdef RT_USING_IDLE_HOOK
rt_size_t i;
void (idle_hook)(void);
for (i = 0; i < RT_IDLE_HOOK_LIST_SIZE; i++)
{
idle_hook = idle_hook_list[i];
if (idle_hook != RT_NULL)
{
idle_hook();
}
}
#endif / RT_USING_IDLE_HOOK /
#ifndef RT_USING_SMP
rt_defunct_execute();
#endif / RT_USING_SMP /
#ifdef RT_USING_PM
rt_system_power_manager();
#endif / RT_USING_PM */
}
}
用jtag 调试,发现一直运行的是这个 这个怎么解决
更多回帖