Hi all,

 

I am using the EVL Raspberry-PI-4 GPIO driver in oob mode for waiting for 4
GPI signals changes by monitoring raising and falling edges continuously.

 

The first version uses 4 diferent oob threads and it works as expected when
waiting forever in oob_read on each thread.

 

To optimize resources, I want to avoid to use the 4 threads approach, and I
want to create only one thread to handle all GPI functionality. Thus I have
added polling capabilities with evl_poll and related API to GPIO file
descriptors in only one thread.

 

At first it seems to work, but when I added another file descriptor to the
same polliing set (from an event flag group) the program freezes, and system
becomes unstable.

 

Then I noticed that in the "Polling file descriptors
<https://evlproject.org/core/user-api/poll/> " section of the EVL online
documentation, the GPIO real-time I/O driver is not listed in the
enumeration of pollable elements.

 

Is this true and the cause of the wrong behavior when using polled wait? If
yes, could it be easily fixed?

 

Thanks

 

 

Reply via email to