I've been looking through *gpioset.c*, but it's rather involved so I haven't figured it out yet.
Could the python *libgpiod* be rewritten to use just on call to set the pins so there isn't a delay? On Monday, August 10, 2020 at 12:25:03 PM UTC-4 Dennis Bieber wrote: > On Mon, 10 Aug 2020 07:27:08 -0700 (PDT), in > gmane.comp.hardware.beagleboard.user "Mark A. Yoder" > <[email protected]> wrote: > > >Yes, but the hardware on the am335x can toggle multiple pins on the same > >chip in the same clock cycle. Seems like the software should be able to > >support it. > > You could always look at the source code for libgpiod. > > https://github.com/brgl/libgpiod/ > """ > libgpiod - C library and tools for interacting with the linux GPIO > character device (gpiod stands for GPIO device) > > Since linux 4.8 the GPIO sysfs interface is deprecated. User space should > use the character device instead. This library encapsulates the ioctl calls > and data structures behind a straightforward API. > """ > > However, to save some time -- from what I can tell, while the library > consolidates multiple pins (lines) per controller chip, it then passes that > on to a kernel call. I've not located the source (kernel) for that level. > If it is somewhat generalized, it may be coded to handle hardware that can > only get/set one line at a time -- even if the actual hardware allows > parallel access. > > > -- > Dennis L Bieber > > -- 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/cb278520-7eab-4e8f-b214-6c2c3051c502n%40googlegroups.com.
