Thank you for the responses, gentlemen. *Dennis:* 2nd addition... ran it to those problems last spring... edition matters for certain. 1st addition uses only an outdated device tree method.
I've used config-pin in the ways you've described from the IDE, but have not incorporated it into C++ program. Will look for examples As an aside -- setting an output to pull-up/pull-down seems to me rather perverse. My understanding of circuits is that pull-up/-down is meant to ensure one reads a particular state when external devices are /not/ driving a line to either rail, or are tri-stated (floating) when the line is shared among devices. Once your application is running, your outputs should be driven to one or the other state, they won't be floating. I want to ensure the pump is not triggered from any noise. Perhaps I misunderstood this feature. TJF I will review this method. Best Regards On Tue, Jun 16, 2020 at 10:29 AM TJF <[email protected]> wrote: > 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 a topic in the > Google Groups "BeagleBoard" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/beagleboard/S3UoBNP6kjg/unsubscribe. > To unsubscribe from this group and all its topics, 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 > <https://groups.google.com/d/msgid/beagleboard/f5d00e94-c939-437b-8179-cdb6a2525229o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CA%2BWcFtNQnDEJt7tR5_mFDAs4237HHLbYxkKU_Ebx07j9UsuPgw%40mail.gmail.com.
