|
发表于 2016-5-7 11:09:50
|
显示全部楼层
CMSIS rtos rtx 是在rtx上封装了一层
比如:任务的创建- /// Create a thread and add it to Active Threads and set it to state READY
- osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument) {
- if (__get_IPSR() != 0) return NULL; // Not allowed in ISR
- if (((__get_CONTROL() & 1) == 0) && (os_running == 0)) {
- // Privileged and not running
- return svcThreadCreate(thread_def, argument);
- } else {
- return __svcThreadCreate(thread_def, argument);
- }
- }
复制代码 其实是调用了svcThreadCreate(thread_def, argument);和__svcThreadCreate(thread_def, argument);来完成的
找遍了整个工程没有找到__svcThreadCreate这个函数在哪定义的,所有“__”开头的函数都没有找到
站长给讲解一下
莫非“__”是编编译支持的? |
|