[ECOS] dynamic HAL_PLATFORM_* values
sandeep kumar
sandeep@codito.com
Mon Apr 12 15:44:00 GMT 2004
Hi,
> In the FPGA are registers I can read to get the version
> numbers. During hal_platform_init() (or maybe earlier)
> I want to read those registers, format the data into a
> fixed length string in .data and somewhere #define
> HAL_PLATFORM_EXTRAS to be a pointer to that string, so
> that redboot will print my string out on boot and the string
> will reflect the values in the FPGA registers at runtime.
> Everything I saw from grepping my tree statically defines
> HAL_PLATFORM_* in a cdl file.
Why not just define an appropriate size array, that you populate
with desired information, and later print it.
regards
sandeep
--
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