This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
你(们)好。
我想在 EtherCAT 应用(tiscappl.c)中创建一个线程。 您是否有可在我的应用中使用的示例代码?
1.我在 ti\PRU-ICSS-ETHERCAT_Slave_01.00.07.02\protocol\EtherCAT_SLAVE \ecat_appl\am335x_app.cfg 中添加了以下内容
================================================================================
VAR 设置= xdc.useModule ("ti.sysbios.posix.Settings");
settings.supportsMutexPriority = true;
task.enableIdleTask = true;
================================================================================
2.我在 ti\PRU-ICSS-ETHERCAT_Slave_01.00.07.02\protocol\EtherCAT_SLAV\ecat_appl\EcatStack\tiscapppl.c 中添加了以下内容
================================================================================
#include
================================================================================
3.当我尝试构建时,会出现以下错误。
4.我参考了以下 URL:
http://processors.wiki.ti.com/index.php/SYS/BIOS_POSIX_Thread_(pthread)_Support
提前感谢您。
Simon、
您是否有任何需要使用 pthread 的原因? 您可以在 tutils.c 中添加与下面的 LEDtask 类似的另一个任务(TI-RTOS 中的线程)
TaskP_Params_init (&taskParams);
taskParams.priority = 4;
taskParams.stacksize = 1512*TIESC_task_stack_size_mUL;
ledTaskHnle= TaskP_create (LEDtask、&taskParams);
有关 TI-RTOS 中线程类型的详细信息、请参见 Bios_User_guide.pdf 中的\ti\BIOS_6_75_02_00\docs
此致、
Garrett