Hi Brandon. Am Dienstag, 7. April 2015 23:36:41 UTC+2 schrieb Brandon Stafford: > > Subsequently, the ADC works as before, but the button example fails: > > ➜ libpruio-0.2 sudo src/examples/button > 1 > sh: echo: I/O error > pin re-configuration failed (pinmux failed: P8_07 -> x7F) > press any key to quit > > Any suggestions about how to proceed from here? Is it a problem with the > uio_pruss module? Or with libpruio? >
The example works. That is, when you execute the program it shows the "1" for high state and when you ground pin P8_07 it shows "0" instead. After exiting the main loop (by pressing any key), the program tries to restore the original state of the pin. And this re-configuration fails, since Gpio->config() doesn't handle PRUIO_PIN_RESET correctly. This issue is already fixed for the next release. You can ignore it, as long as you don't need to reconfigure the pin. Otherwise, if you need a specific pin configuration after executing the example, you can work around by replacing PRUIO_PIN_RESET by the desired configuration (or use .BallInit(PIN) for the original state). BR -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
