04-10-2019, 06:02 PM
Howdy,
Not using the /sys/class file IO method.
I'm mmap-ing the RK3399's IO and using address offsets
to read/write the IO. I've got the GPIO, I2C, SPI,
I2S, & UART all mapped out. Whatever's available at
the 40-pin GPIO header is accessible via mmap'd IO.
Basically it's the methods used in the BCM2835 Library
for low-level IO. I've just translated the methods to
work for an RK3399 instead of a BCM2835/7 that's used in
a Pi 2/3B.
https://www.airspayce.com/mikem/bcm2835/
So far so good...the methods work fine, I just can't get
GPIO3D[0]..[7] and GPIO4C[3]..[5] & GPIO4D[1]..[4]
to toggle. I'll have to check the schematic to verify
they're not used by any other devices.
/Faradn
Not using the /sys/class file IO method.
I'm mmap-ing the RK3399's IO and using address offsets
to read/write the IO. I've got the GPIO, I2C, SPI,
I2S, & UART all mapped out. Whatever's available at
the 40-pin GPIO header is accessible via mmap'd IO.
Basically it's the methods used in the BCM2835 Library
for low-level IO. I've just translated the methods to
work for an RK3399 instead of a BCM2835/7 that's used in
a Pi 2/3B.
https://www.airspayce.com/mikem/bcm2835/
So far so good...the methods work fine, I just can't get
GPIO3D[0]..[7] and GPIO4C[3]..[5] & GPIO4D[1]..[4]
to toggle. I'll have to check the schematic to verify
they're not used by any other devices.
/Faradn