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.

sysbios-posix中函数开放问题

Other Parts Discussed in Thread: SYSBIOS

自己编写了一个函数需要调用sysbios-poix中的clock.c, sleep.c中的函数,但并没有找到其对应的头文件。如需使用bios_6_52_00_12\packages\ti\sysbios\posix\sleep.c中的unsigned sleep(unsigned seconds)函数。xdsr_sleep为自己写的函数,其中调用sleep函数;unsigned sleep(unsigned seconds)函数为sysbios-posix中的sleep.c;同时utils.h中对sleep进行了外部声明。但在程序编译过程中,xdsr_sleep中调用的sleep报错,说在该文件中是第一次定义。请教下,是我使用有问题,还是sleep函数本身并没有对用户开放?