If a task and a HWI use the same semaphore must I declare the semaphore as volatile?
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.
If a task and a HWI use the same semaphore must I declare the semaphore as volatile?
No. The semaphore handle itself will never change. And the internal data within the semaphore object is managed by BIOS in a thread/ISR-safe manner.
-Karl-