This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What's the benefits of osThreadDef

Hello,

I am looking at the CMSIS, I have a question about using osThreadDef macro to define var:

osThreadDef(name, osPriorityNormal, 1, 0);

Why not define as below directly? what's the benefits?

osThreadDef_t os_thread_def_name = {name, osPriorityNormal, 1, 0};

Thanks.