RTT Nano线程创建成功,没有进入线程创建的函数运行int main(void)
{
interrupt_config();
// gd_eval_led_init(LED1);
ledTaskInit();
}
#include"ledTask.h"
#include
void led_thread_entry(void* p);
void led_thread_entry(void* p)
{
while(1)
{
rt_kprintf("led_thread_entry start...\n");
}
}
void ledTaskInit(void)
{
rt_thread_t ledThread_ptr;
ledThread_ptr = rt_thread_create("ledThread",
led_thread_entry,
RT_NULL,
512,
10,
50
);
if(ledThread_ptr != RT_NULL)
{
rt_thread_startup(ledThread_ptr);
rt_kprintf("ledThread start...\n");
}
}