Programming the Pine64
#3
You can use Python pyA20 from https://pypi.python.org/pypi/pyA20, but you will need to fix it a bit to make it 64bits compatible.

The fix is in gpio_lib.h, changing a "int" (32bits) with a "long" (64bits) :

123c123
< extern unsigned int SUNXI_PIO_BASE;
---
> extern unsigned long SUNXI_PIO_BASE;

And also in the gpio_lib.c :

67c67
< SUNXI_PIO_BASE = (unsigned int) pc;
---
> SUNXI_PIO_BASE = (unsigned long) pc;
  Reply


Messages In This Thread
Programming the Pine64 - by cookeys - 04-26-2016, 05:27 AM
RE: Programming the Pine64 - by MegaMech - 04-28-2016, 11:57 AM
RE: Programming the Pine64 - by martinayotte - 04-29-2016, 11:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Down Pine64 was a Useless Project pushpendrak 18 9,700 11-21-2020, 10:17 PM
Last Post: tllim
  Pine64 LCD rstcologne 0 852 09-22-2020, 12:43 PM
Last Post: rstcologne
  Pine64+ power button PaddyChan 0 558 09-14-2020, 09:55 AM
Last Post: PaddyChan
  Pine64 OS dpcons 2 1,237 03-02-2020, 04:32 PM
Last Post: dpcons
  Jailhouse supports Pine64+ vj-kumar 0 783 02-17-2020, 11:39 PM
Last Post: vj-kumar
  PINE64 board not powering up loki21century 2 1,614 11-25-2019, 12:19 PM
Last Post: Partymack711
  Pine64 not powering up. skylab 5 2,116 05-03-2019, 02:48 PM
Last Post: Mendota
  Pine64 LTS vs Rock64 4 GB LTS gops 2 1,180 04-15-2019, 10:56 AM
Last Post: gops
  Pine64+ 2GB board for sale with WiFi module and case ~clumsy~ 1 1,295 10-21-2018, 04:54 AM
Last Post: aeiltz
  Video Chat with Pine64 mathiraj 0 930 07-02-2018, 02:33 PM
Last Post: mathiraj

Forum Jump:


Users browsing this thread: 1 Guest(s)