cmd_setexpr: allow memory addresses in expressions
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 26 Feb 2010 13:00:19 +0000 (14:00 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 21 Mar 2010 21:44:43 +0000 (22:44 +0100)
commit47ab5ad14575531798431f0d1e8f83ee9bb0a87e
tree83edf71dd440464ff9f0f506fab461e14165a497
parent652e53546b23c25f80756287eaf607b713afdc87
cmd_setexpr: allow memory addresses in expressions

This patch add functionality to use memory addresses in expressions.
This increases the power of expressions substantially

It adheres to the standard convemtions: memory addresses can be given
in the format *address (e.g. *1000)

Rationale for this change is that it allows masking off bits from a
byte that is obtained by reading data from e.g. i2c.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fix warning: control reaches end of non-void function
Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_setexpr.c