TI-RTOS API函数问题
没搞明白Task_construct()和Task_creat()两个函数分别是什么作用,有没有TI RTOS Kernel API 详细的说明文档?
creat需要RTOS分配空间,construct则是静态创建。
http://www.ti.com/lit/ug/spruex3q/spruex3q.pdf
Module_create():
The create APIs require a heap to allow dynamic memory allocation of the object. All module create functions require that an Error_Block structure be passed to the creation function.
Module_construct()
The construct APIs must be passed an object structure instead of dynamically allocating the object from a heap. Avoiding dynamic memory allocation helps reduce the code footprint. Most Module_construct() APIs do not require an Error_Block; this also helps reduce the code footprint. Some Module_construct() APIs may allocate memory internally.
Hi , 这段是在哪个文档摘录的?
顺便吐槽下:看了几天TI-RTOS的文档,感觉文档比较凌乱,不容易抓住中心!
我有同感。TI的这方面文档看得人一头雾水
很抱歉给您带来的不便!关于TI-RTOS的相关资料您可以在官网进行查看:
官网给出了相关的user guide并对TI-RTOS各个部分给出了简单的说明
http://www.ti.com.cn/tool/cn/ti-rtos
TI-RTOS Kernel SYS/BIOS SYS/BIOS (TI-RTOS Kernel) User’s Guide:http://www.ti.com/lit/pdf/spruex3
另外您也可以通过TI WIKI页面查看,wiki页面的说明是非常有条理的:
http://processors.wiki.ti.com/index.php/TI-RTOS
希望对您有所帮助,谢谢!
请问ti rtos有类似freertos的vTaskDelay的任务阻塞函数吗?
@Jason hu1,
可以使用Task_sleep()