We can use callbacks to read GPIO pins in Interrupt mode. How do read GPIO pins in polling mode on TI-RTOS. can we poll on GPIO pins in TI-RTOS
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.
We can use callbacks to read GPIO pins in Interrupt mode. How do read GPIO pins in polling mode on TI-RTOS. can we poll on GPIO pins in TI-RTOS
Narendra,
The GPIO drivers in TI-RTOS don’t have a specific polling mode (where they would automatically poll a pin until a certain state occurs).
But you can do polling on your own, by calling GPIO_read() repeatedly, or using a delay between calls to GPIO_read() - for example, in a task call Task_sleep() for an interval, then call GPIO_read(), and if the GPIO state is not what you want, invoke Task_sleep() again, etc.
Scott