How do I implement an interrupt service routine (ISR) in FreeRTOS?
@Middleware & OS
Hello guys, how do I Implement an interrupt service routine (ISR) in FreeRTOS that triggers a task when a button is pressed and also Ensure the ISR communicates with the task using a binary semaphore
Hello guys, how do I Implement an interrupt service routine (ISR) in FreeRTOS that triggers a task when a button is pressed and also Ensure the ISR communicates with the task using a binary semaphore
Solution
You can achieve this with the following steps
- Configure the button press as an interrupt source.
- Write the ISR to give a binary semaphore when the button is pressed.
- Create a task that takes the semaphore and runs when the semaphore is given.