void rt_fs00603a_init(void)
{
rt_thread_t tid;
fs00603a_mutex = rt_mutex_create("fs00603amt", RT_IPC_FLAG_PRIO);
RT_ASSERT(fs00603a_mutex != RT_NULL);
#ifdef RT_USING_HEAP
tid = rt_thread_create("fs00603a",
fs00603a_thread_entry,
RT_NULL,
RT_FS00603A_THREAD_STACK_SIZE,
RT_FS00603A_THREAD_PRIORITY,
20);
RT_ASSERT(tid != RT_NULL);
fs00603a_rx_sem = rt_sem_create("fsrxsem", 0, RT_IPC_FLAG_FIFO);
#else
rt_err_t result;
tid = &bt_thread;
result = rt_thread_init(tid,
"fs00603",
fs00603a_thread_entry,
RT_NULL,
bt_stack,
sizeof(bt_stack),
RT_FS00603A_THREAD_PRIORITY,
20);
RT_ASSERT(result == RT_EOK);
#endif
rt_thread_startup(tid);
}
编译后报以下错误
error: At end of source: #18: expected a ")"
此程序在另一台电脑上是可以编译通过的,设置也是一样,版本也一样。
|