I’m trying to make a custom function using the Libpruio library on a BBB that does the following sequence:
- Poll the state of a GPIO pin
- Start ADC sampling when pin goes low
When looking through the documentation for the PRUIO constructor and config, it seems like the settings for gpio reading and ADC reading conflict. Should I make two separate instances of PRUIO for each task or is there a better way to harmonize the two?