On 8/7/2015 2:38 AM, [email protected] wrote: > > Hi, > I'm actually trying to fully remap and program the GPIO on the BeagleBone > Black for an embedded system with TOR, ANA and other connection. Actually > I've try to use the GPIO in user space and responce time is in ms, then I > tied to use a kernel module with IRQ, now I can perform operation and > toggle GPIO in 300us (which seem's to be the the maximum due to sysfs use). > I need to perform actions faster than that, so I'm actually looking for > controlling the GPIO registers. But this can interfer with the linux system > isn't it ? What's the proper way to do that ? Note that I can't use the > PRU.
The proper way to access the GPIO registers directly is the same way you do it from the PRU: Use the set/clear registers to set/clear just the bits you need rather than writing the full 32-bit data output register. The GPIO pin setup (setting direction, pull-up/down, etc) should still be done via sysfs (or internal kernel calls) to avoid possibly corrupting these registers, but that's typically a one-time operation. -- Charles Steinkuehler [email protected] -- 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.
