TI-RTOS例程问题,例程中有创建任务函数Void lcdLowPriorityFxn(UArg a0, UArg a1) { };但是main函数却不见在哪调用了,求指教!
下面是官方TI-RTOS中LCD例程,main函数如下所示,例程中有创建任务函数Void lcdLowPriorityFxn(UArg a0, UArg a1) { };但是main函数却不见在哪调用了,本人初学CC1310,搞不懂这个例程,请大神帮忙解答一下,谢谢啦!
/*
* ======== main ========
*
*/
int main(void)
{
/* Call board init functions */
Board_initGeneral();
/* Set constraints for standby, powerdown and idle mode */
Power_setConstraint(Power_IDLE_PD_DISALLOW);
Power_setConstraint(Power_SB_DISALLOW);
Power_setConstraint(Power_SD_DISALLOW);
System_printf("Starting the LCD example\nSystem provider is set to SysMin."
" Halt the target to view any SysMin contents in ROV.\n");
/* SysMin will only print to the console when you call flush or exit */
System_flush();
/* Start BIOS */
BIOS_start();
return (0);
}
求解答啊,main函数里的那几个函数我都进去看了,没有找到在哪调用了任务函数啊
你确定导入的是正确的工程吗?我导入LCD SmartRF06EB 例子,是有任务创建的。
int main(void)
{
Task_Params taskParams;
Semaphore_Params semParams;
/* Call board init functions */
Board_initGeneral();
SPI_init();
/* Construct lcd Task threads */
Task_Params_init(&taskParams);
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task0Stack;
taskParams.priority = 2;
taskParams.instance->name = "lcdHighPriorityFxn";
Task_construct(&task0Struct, (Task_FuncPtr)lcdHighPriorityFxn, &taskParams, NULL);
lcdHighPriorityTask = Task_handle(&task0Struct);
taskParams.stack = &task1Stack;
taskParams.priority = 1;
taskParams.instance->name = "lcdLowPriorityFxn";
Task_construct(&task1Struct, (Task_FuncPtr)lcdLowPriorityFxn, &taskParams, NULL);
lcdLowPriorityTask = Task_handle(&task1Struct);
Semaphore_Params_init(&semParams);
semParams.mode = Semaphore_Mode_BINARY;
Semaphore_construct(&sem0Struct, 0, &semParams);
lcdHighPrioritySem = Semaphore_handle(&sem0Struct);
/* Start BIOS */
BIOS_start();
return (0);
}
你好,导入的是LCD SmartRF06EB,
我用的TI-RTOS包是tirtos_simplelink_2_14_03_28,导入后例程就是这样的,
和你导入的不一样啊,为什么呢
我用的是最新版本的TI-RTOS,你可以去下一个试试。
你好,我用的是tirtos_simplelink_setupwin32_2_14_03_28,是新版本吧?我找不到更新的版本了,如果你用的是最新的,可以发一个给我吗?谢谢你了
最新的2.20了,如下网站去下载
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/index.html