Team,
We need to read the same GPIO pin in two different threads in our application which are reading continuously in a loop, but at different speed. First thread will invoke GPIO_read every 20 microseconds and the second one will read every 1000 microseconds on the same pin. We have some challenges in combining them to a single read logic and we have not faced any issues during our testing. However we would like to understand any drawbacks if we do so? There are chances when few reads would happen at same time by both threads and if so what are the outcomes?
Appreciate support.
Regards,
Zac