diff options
| author | Josef Gajdusek | 2015-05-11 02:00:19 +0200 |
|---|---|---|
| committer | Damien George | 2015-05-13 00:12:54 +0100 |
| commit | 1db42538864e1f235fee1b37b44ca428b1f3c427 (patch) | |
| tree | 563a071f03026d583d5bf7a5e93c8ff2bfe646dd /cc3200/fatfs/src/diskio.c | |
| parent | 800d5cd16f2e153a2dfc750c507f5a82d17491d7 (diff) | |
lib: Move time utility functions to common library.
Diffstat (limited to 'cc3200/fatfs/src/diskio.c')
| -rw-r--r-- | cc3200/fatfs/src/diskio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc3200/fatfs/src/diskio.c b/cc3200/fatfs/src/diskio.c index 8a6b5704d..55e7e1916 100644 --- a/cc3200/fatfs/src/diskio.c +++ b/cc3200/fatfs/src/diskio.c @@ -15,12 +15,12 @@ #if MICROPY_HW_HAS_SDCARD #include "sd_diskio.h" /* SDCARD disk IO API */ #endif -#include "modutime.h" #include "inc/hw_types.h" #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "rom_map.h" #include "prcm.h" +#include "timeutils.h" /* Definitions of physical drive number for each drive */ #define SFLASH 0 /* Map SFLASH drive to drive number 0 */ @@ -192,13 +192,13 @@ DWORD get_fattime ( void ) { - mod_struct_time tm; + timeutils_struct_time_t tm; uint32_t seconds; uint16_t mseconds; // Get the time from the on-chip RTC and convert it to struct_time MAP_PRCMRTCGet(&seconds, &mseconds); - mod_time_seconds_since_2000_to_struct_time(seconds, &tm); + timeutils_seconds_since_2000_to_struct_time(seconds, &tm); return ((tm.tm_year - 1980) << 25) | ((tm.tm_mon) << 21) | ((tm.tm_mday) << 16) | ((tm.tm_hour) << 11) | |
