有宏定义:
.....................
#define osThread(name) &os_thread_def_##name;
.....................
#define osThreadDef(name, thread, priority, instances, stacksz) \
const osThreadDef_t os_thread_def_##name = \
{ #name, (thread), (priority), (instances), (stacksz) }
.....................
调用如下:
1、osThreadCreate( osThread(SIGNAL_GEN) , NULL);
2、osThreadDef(SIGNAL_GEN, Signal_Gen_Thread, osPriorityNormal, 0, configMINIMAL_STACK_SIZE);
是什么意思?求大神指教。 |