04-29-2016, 11:37 AM
(This post was last modified: 04-29-2016, 11:38 AM by martinayotte.)
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;
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;