问题描述
在新版本的程序中,使用 init 的方式创建线程
int th_swd_init(void)
{
static struct rt_thread thd_swd_m;
static uint8_t stk_swd_m[2048];
rt_err_t ret;
ret = rt_thread_init(&thd_swd_m, "thd_swd_m", fun_swd_m, RT_NULL,
stk_swd_m, 2048, 17, 1);
if (ret == RT_EOK)
rt_thread_startup(