This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to print timestamp in ecos


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]