On Fri, 2006-06-16 at 19:22 -0400, André-John Mas wrote:
Hi,
I use fconfig in my redboot to set an IP address for my card.
What is
the
best way to read this IP address from my application, since
flash_config.h
seems to be part of the Redboot package.
You can do this using the Virtual Vectors interface into RedBoot.
The call:
CYGACC_CALL_IF_FLASH_CFG_OP(CYGNUM_CALL_IF_FLASH_CFG_GET,
<fconfig_name>,
&result,
<type>)
Where <fconfig_name> is a string containing the 'fconfig' short
name for
the data item (use 'fc -l -n' to see what the names are). The
variable
<type> defines the type of data. You can find the #define's for
these
in the include file "flash_config.h".
Note: the result of this call is a boolean - true if the data was
found, false if not.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/
ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-
discuss