> Using slightly modified (unmodified in most cases) uartmini.c GPIO functions 
> i implemented #G/gpio device:
> Structure is as follows:
> #G/gpio/
>       /bcm/ ...
>       /board/ ...
>       /wpi/ ...
>       /OK
> 
> - bcm uses board revision specific pin numbering
> - board uses human readable pin addressing (board revision agnostic)
> - wpi uses wiringPi pin assignment (board revision agnostic)
> - OK pin can be used to switch on/off OK LED on the board
> 
> Each directory above contains files that are mapped to pins.
> Maybe it is an overkill, i don’t know.

first off, cool!

#G seems fine to me.

 it might be just as well to just export only the board wiring, letting
something in the boot-time configuration set this up.

seems worth implementing uartmini (and spi) on top, and allowing group
pin allocation to support this.

- erik

Reply via email to