I want to create a thread that loops and waits for events via a QUE object. However, I note that the QUE_get(), and QUE_empty() don't block. So I tryed using a TSK_sleep() function in my task. I have a priority 4 task that is basically a while() loop reading from the Queue and then going to sleep. I set the TSK_sleep(1), or the nticks = 1 and the task never goes to sleep. If I comment TSK_sleep(1); out, my task executes and does not let lower priority stuff execute. What have I not configure so that the TSK_sleep() function with nticks = 1 never wakes up?
Robert