Hello,
On SYSBIOS, is there a mechanism to change the priority of the callback function which is registered for an IPC notify?
Thanks
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.
Hello,
On SYSBIOS, is there a mechanism to change the priority of the callback function which is registered for an IPC notify?
Thanks
Talha,
The Notify callback runs at Hwi priority, which is the highest priority. So, you cannot raise the callback priority, but you can effectively lower it.
In your notify callback, you could post a Swi and move your code from the notify callback to the Swi function. This would lower the priority of your code from Hwi to Swi level. Keep in mind that Swi functions have the same restictions as Hwi functions (e.g. they cannot block).
Another option is to post a semaphore in your notify callback. You could have a task waiting on the semaphore. If you move your callback code to the task, this would effectively lower your code priority from Hwi to Task level. This allows you to write code which could block.
~Ramsey