sergev/pic32prog

Linux GPIO adapter

Opened this issue · 3 comments

We could really do with a Linux GPIO adapter that can directly connect the GPIO pins of, for instance, a Raspberry Pi or Yun Shield, to a PIC32 to bit-bang the ICSP protocol direct to the chip.

/sys/class/gpio is the normal Linux interface to the GPIO pins.

This is definitely possible. Actually it's pretty easy: start with the existing code from adapter-bitbang.c file and replace a few functions like bitbang_send() and bitbang_recv().

I've found free software program that does exactly this:
https://github.com/WallaceIT/picberry

picberry looks pretty good.
So no need to enhance pic32prog: the task is already solved.