Local Filesystem Question and Suggestion

29 Nov 2009

I have a question and a suggestion:

Where is dirent defined?

I note that files created by mbed have a fixed timestamp of 12:00 01/01/2008. I understand why - the mbed interface does not have a real time clock. However, mbed can have a real time clock. Give this, may I suggest an API call whereby mbed passes the current time and date to mbed interface? Mbed interface uses the data to seed a time of day timer and hence is able to give files real timestamps.

Paul

29 Nov 2009

I agree but, how is mbed supposed to get the real (wall-clock) time?

From what I can deduct: If you need a correct clock you need to either get it from the host (via a protocol) or have an external battery and settings on the device.

Anders

29 Nov 2009

Sorry I did not make it clear.

I was assuming that an external battery was connected to the mbed VB input and that a program running on the mbed had set up the RTC registers using the functions defined in rtc_time.h

Paul