off by one error, maxpins
Sean Bruno
sean_bruno at yahoo.com
Thu Sep 5 22:38:24 UTC 2013
http://people.freebsd.org/~sbruno/maxpin_plus_one.txt
Been screwing around with pins and led's on the DIR-825 B1. Looks like
it has an led on PIN 11, its "maxpin" is 11 when its setup at
initialization. This is causing the *last* gpio pin to be ignored.
e.g.
--original--
# gpioctl -f /dev/gpioc0 -l
pin 00: 0 pin 0<OUT>
pin 01: 0 pin 1<OUT>
pin 02: 0 pin 2<OUT>
pin 03: 1 pin 3<OUT>
pin 04: 0 pin 4<OUT>
pin 05: 1 pin 5<IN>
pin 06: 0 pin 6<OUT>
pin 07: 1 pin 7<IN>
pin 08: 0 pin 8<OUT>
--patch--
# gpioctl -f /dev/gpioc0 -l
pin 00: 0 pin 0<OUT>
pin 01: 0 pin 1<OUT>
pin 02: 0 pin 2<OUT>
pin 03: 1 pin 3<OUT>
pin 04: 0 pin 4<OUT>
pin 05: 1 pin 5<IN>
pin 06: 0 pin 6<OUT>
pin 07: 1 pin 7<IN>
pin 08: 0 pin 8<OUT>
pin 11: 0 pin 11<OUT>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20130905/9b247e32/attachment.sig>
More information about the freebsd-embedded
mailing list