07-23-2017, 05:53 AM
(07-23-2017, 05:46 AM)ealbers Wrote: Can someone please point me to where theres a simple GPIO example in C?
Is the GPIO memory mapped somewhere? I need to read/write the pins at very high speed, so I'd like access as close to the hardware as possible.
Thanks
see this link for C++ library
see this link for python gpio control
Both links are useful for C. The Python module is a wrapper; the underlying C code is useful. The C++ library is a good start too. Yes, the gpio(s) are mapped in /dev/mem
Please see the A64 datasheet, and the A64 user manual also.
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )