Hi! Am Dienstag, 16. Juni 2020 00:08:18 UTC+2 schrieb P B:
> I'm a little stuck here. > Drop all than device tree and config-pin stuff. Instead use libpruio <https://github.com/DTJF/libpruio> for pinmuxing. Once installed you can configure the pins from user space in your source code, compiled against libpruio. (This also safes boot-time and kernel memory.) Example: ... // Input if (pruio_gpio_config <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/pruio__c__wrapper_8bas.html#ac5405314ef2c35a9604262a22378420d> (io, P8_11 <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/button2_8c.html#ae1a27401b7fb01ccb9a82dbddbb54eea> , PRUIO_GPIO_IN_0 <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/pruio__globals_8bi.html#a4d604dbec305f941aaa452cc0d01adeea661a5356f0da98015d241d42084a0f30> )) { printf("GPIO P8_11 configuration failed (%s)\n", io->Errr); break;} // Output if (pruio_gpio_setValue <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/pruio__c__wrapper_8bas.html#ac5405314ef2c35a9604262a22378420d> (io, P9_12 <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/button2_8c.html#ae1a27401b7fb01ccb9a82dbddbb54eea> , 0 <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/pruio__globals_8bi.html#a4d604dbec305f941aaa452cc0d01adeea661a5356f0da98015d241d42084a0f30> )) { printf("GPIO P9_12 configuration failed (%s)\n", io->Errr); break;} Check the examples <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaExamples.html> for complete code. By default an output pin gets configured without restistor, but you can override by function pruio_setPin(io, P9_12, 7 + PRUIO_PULL_UP). Regards -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/f5d00e94-c939-437b-8179-cdb6a2525229o%40googlegroups.com.
