more pedantry as i write up things you can do in u-boot on the BBB
... there's this:
# gpio help
gpio - query and control gpio pins
Usage:
gpio <input|set|clear|toggle> <pin>
- input/set/clear/toggle the specified pin
gpio status [-a] [<bank> | <pin>] - show [all/claimed] GPIOs
#
so i just wanted to see what i could do with variations of "gpio
status". well, this worked fine:
# gpio status -a
i got 128 lines of gpio status, 32 lines at a time starting with
# gpio status -a
Bank GPIO0_:
GPIO0_0: input: 0 [ ]
GPIO0_1: input: 0 [ ]
GPIO0_2: input: 0 [ ]
GPIO0_3: input: 0 [ ]
... etc etc ...
but i can't seem to get anything using any variation of
gpio status [-a] [<bank> | <pin>]
trying to specify bank or pin. and if i look at the source in u-boot
in cmd_gpio.c, i see:
if (!strcmp(str_cmd, "status")) {
/* Support deprecated gpio_status() */
#ifdef gpio_status
gpio_status();
return 0;
so now i see that gpio_status() is "deprecated"? so, before i launch
myself into the source code to see what's going on, what variations of
"gpio status" should work?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================