A Python driver for accessing peripheral memory (e.g. V3D) on Raspberry Pi.
The register definitions are derived from
Brcm_Android_ICS_Graphics_Stack/brcm_usrlib/dag/vmcsx/vcinclude/bcm2708_chip/
.
Cython
is needed (see requirements.txt).
For testing, nose
is needed.
Because it accesses the peripheral through /dev/mem
, you need to be root to
run this driver.
$ git clone https://github.com/Idein/rpi-peri-regs.git
$ cd rpi-peri-regs/
$ pip install -r requirements.txt
$ pip install .
Run pip uninstall -r requirements.txt rpi_peri_regs
to uninstall them.
$ pip install nose
$ python setup.py build_ext --inplace
$ sudo nosetests -v -s