Werner Almesberger
e9debdd4ab
tools/atrf-gpio/atusb.c (gpio): _exit after USB error, to avoid futile cleanup
2011-06-05 21:37:46 -03:00
Werner Almesberger
a73a8a2044
tools/atrf-gpio/atusb.c: if ATUSB_GPIO fails, show the attempted setting
...
- atusb.c (dump_port, gpio): dump the attempted setting if ATUSB_GPIO
fails (assuming it is that setting that caused the failure)
2011-06-05 21:32:14 -03:00
Werner Almesberger
87e06b4e4e
tools/atrf-gpio/atusb.c: various bug fixes and improvements
...
- atusb.c (name): clarified that PC3 is unconnected
- atusb.c (gpio): "dir" and "data" were swapped
- atusb.c (gpio): complain if ATUSB_GPIO returns the wrong amount of data
- atusb.c (dump, main): show the pin configuration as well
- atusb.c (dump): show "-" for values where we don't expect a specific
result
- atusb.c (dump): removed extra newline on mismatch
2011-06-05 18:30:13 -03:00
Werner Almesberger
6bf03fe0a6
tools/atrf-gpio/atben.c: made error report easier to read
...
- atben.c (decode_cfg): report pull-up as "R" instead of "P"
- atben.c (dump_pd): show "-" for values where we don't expect a
specific result
2011-06-04 10:53:44 -03:00
Werner Almesberger
b0f3cb099b
tools/atrf-gpio/atusb.c: ATUSB driver (using ATUSB_GPIO)
2011-06-04 10:29:10 -03:00
Werner Almesberger
4924755a15
atrf-gpio: new utility to directly access GPIOs (for now atben-only)
...
- tools/atrf-gpio/: new utility to directly access GPIOs
- tools/Makefile (BEN_DIRS): added atrf-gpio
2011-06-04 09:50:27 -03:00