[ECOS] Reading flash config value from application
Gary Thomas
gary@mlbassoc.com
Sat Jun 17 21:25:00 GMT 2006
On Fri, 2006-06-16 at 22:43 -0400, André-John Mas wrote:
> Which package do I need to include in my ECC for this?
Please keep your replies on the list so that all may benefit.
No special packages are required; just include <cyg/hal/hal_if.h>
> Andre
>
> On 16-Jun-06, at 21:41 , Gary Thomas wrote:
>
> > 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
--
------------------------------------------------------------
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
More information about the Ecos-discuss
mailing list