Semaphore_pend(sem, timeout);我要做阻塞等待,第二个参数该怎么写,谢谢!
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.
Semaphore_pend(sem, timeout);我要做阻塞等待,第二个参数该怎么写,谢谢!
// Wait for an ALERT callback
Semaphore_pend(Semaphore_handle(&semScTaskAlert), BIOS_WAIT_FOREVER);
建议您看一下Sensor Controller Studio里面的Analog Light Sensor的gudie,这个例程里面有例子
追问个问题,不同文件之间,是否能a文件post(sem),b文件pend(sem)。我测试的是不行,操作系统会进入死机状态,是不是需要注意哪些情况?谢谢