[U-Boot] [RFC] gpio command: return value on write, additional actions
Detlev Zundel
dzu at denx.de
Fri Jul 15 09:39:48 CEST 2011
Hi Mike,
> On Wednesday, July 06, 2011 06:36:00 Wolfgang Denk wrote:
>> For consistency I would prefer to have all commands return the same
>> type of information, i. e. either an error status (like we do with all
>> other commands - any result values would then have to be passed as
>> environment settings)
>
> going through the env seems a little wonky. i dont know of any other commands
> that do this, so i dont think there's any standard to work off of here ...
I believe Wolfgang means for example this:
,----[ common/cmd_setexpr.c ]
| U_BOOT_CMD(
| setexpr, 5, 0, do_setexpr,
| "set environment variable as the result of eval expression",
| "[.b, .w, .l] name value1 <op> value2\n"
| " - set environment variable 'name' to the result of the evaluated\n"
| " express specified by <op>. <op> can be &, |, ^, +, -, *, /, %\n"
| " size argument is only meaningful if value1 and/or value2 are memory addresses"
| );
`----
Cheers
Detlev
--
Als ich entführt wurde, begannen meine Eltern aktiv zu werden.
Sie vermieteten mein Zimmer.
-- Woody Allen
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list