From: Wolfgang Denk Date: Sun, 21 Mar 2010 13:38:03 +0100 Subject: [U-Boot] [PATCH v3 7/7] cmd_setexpr: allow memory addresses in expressions In-Reply-To: <1267189219-6712-1-git-send-email-fransmeulenbroeks@gmail.com> References: <1267189219-6712-1-git-send-email-fransmeulenbroeks@gmail.com> Message-ID: <20100321123803.E0ED84C022@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Frans Meulenbroeks, In message <1267189219-6712-1-git-send-email-fransmeulenbroeks@gmail.com> you wrote: > 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 > --- > > common/cmd_setexpr.c | 29 +++++++++++++++++++++++++---- > 1 files changed, 25 insertions(+), 4 deletions(-) Applied to next branch, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "The majority of the stupid is invincible and guaranteed for all time. The terror of their tyranny, however, is alleviated by their lack of consistency." - Albert Einstein