[ECOS] how to print timestamp in ecos

gaurang gaurang.tamakuwala@yahoo.com
Fri Apr 3 09:49:00 GMT 2009


Hi,   
     Any test code of wallclock and how to make makefile.I insert Wallclock
I/O package
(CYGPKG_IO_WALLCLOCK) and the ISO C date and time package
(CYGPKG_LIBC_TIME) in my ecos and I use time() function,but I am not getting
time.


John Dallaway-2 wrote:
> 
> gaurang wrote:
> 
>> I want display and store time and date in flash.So how can
>> display timestamp in ecos.
>> Any time api for time stamp.
> 
> You will need an eCos wallclock driver for your hardware platform. You
> will also need to ensure that the Wallclock I/O package
> (CYGPKG_IO_WALLCLOCK) and the ISO C date and time package
> (CYGPKG_LIBC_TIME) are part of your eCos configuration. You can then
> call the time() function within the eCos C library to obtain calendar
> time.
> 
> I hope this helps
> 
> John Dallaway
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-print-timestamp-in-ecos-tp22863168p22865236.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
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