现利用TI官网提供的helloworld工程搭建自己的工程,在没有使用semaphore功能时,编译,使用均没有问题,只要调用Semaphore_pend(semHandle, BIOS_WAIT_FOREVER);和Semaphore_post(semHandle);功能,就编译报错!
头文件均已添加,如下:
#include <ti/sysbios/knl/Semaphore.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/hal/Hwi.h>
#include <ti/sysbios/knl/Mailbox.h>
/* ----------------------------------- To get globals from .cfg Header */
#include <xdc/cfg/global.h>
就是编译不过。不知道到底是哪里出了问题!
请大家帮忙分析分析、解决下!