Updated get_fattime to use rtc and provide a date/time. This has been an annoying missing feature.

Dependents:   IoTGateway_Basic y_XBeeTest_5_read CameraC1098_picture LifeCam ... more

Committer:
SomeRandomBloke
Date:
Mon Apr 02 22:06:35 2012 +0000
Revision:
1:5baba5d5b728
Parent:
0:93acdd9f65f4

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
SomeRandomBloke 0:93acdd9f65f4 1 /* mbed Microcontroller Library - FATDirHandle
SomeRandomBloke 0:93acdd9f65f4 2 * Copyright (c) 2008, sford
SomeRandomBloke 0:93acdd9f65f4 3 */
SomeRandomBloke 0:93acdd9f65f4 4
SomeRandomBloke 0:93acdd9f65f4 5 #ifndef MBED_FATDIRHANDLE_H
SomeRandomBloke 0:93acdd9f65f4 6 #define MBED_FATDIRHANDLE_H
SomeRandomBloke 0:93acdd9f65f4 7
SomeRandomBloke 0:93acdd9f65f4 8 #include "DirHandle.h"
SomeRandomBloke 0:93acdd9f65f4 9 #include "ff.h"
SomeRandomBloke 0:93acdd9f65f4 10
SomeRandomBloke 0:93acdd9f65f4 11 namespace mbed {
SomeRandomBloke 0:93acdd9f65f4 12
SomeRandomBloke 0:93acdd9f65f4 13 class FATDirHandle : public DirHandle {
SomeRandomBloke 0:93acdd9f65f4 14
SomeRandomBloke 0:93acdd9f65f4 15 public:
SomeRandomBloke 0:93acdd9f65f4 16 FATDirHandle(const FATFS_DIR &the_dir);
SomeRandomBloke 0:93acdd9f65f4 17 virtual int closedir();
SomeRandomBloke 0:93acdd9f65f4 18 virtual struct dirent *readdir();
SomeRandomBloke 0:93acdd9f65f4 19 virtual void rewinddir();
SomeRandomBloke 0:93acdd9f65f4 20 virtual off_t telldir();
SomeRandomBloke 0:93acdd9f65f4 21 virtual void seekdir(off_t location);
SomeRandomBloke 0:93acdd9f65f4 22
SomeRandomBloke 0:93acdd9f65f4 23 private:
SomeRandomBloke 0:93acdd9f65f4 24 FATFS_DIR dir;
SomeRandomBloke 0:93acdd9f65f4 25 struct dirent cur_entry;
SomeRandomBloke 0:93acdd9f65f4 26
SomeRandomBloke 0:93acdd9f65f4 27 };
SomeRandomBloke 0:93acdd9f65f4 28
SomeRandomBloke 0:93acdd9f65f4 29 }
SomeRandomBloke 0:93acdd9f65f4 30
SomeRandomBloke 0:93acdd9f65f4 31 #endif