diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/fat.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 337e29a1bc..cc9735d0f7 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -2954,20 +2954,6 @@ void fat_empty_fat_direntry(struct fat_direntry *entry) | |||
2954 | entry->firstcluster = 0; | 2954 | entry->firstcluster = 0; |
2955 | } | 2955 | } |
2956 | 2956 | ||
2957 | time_t fattime_mktime(uint16_t fatdate, uint16_t fattime) | ||
2958 | { | ||
2959 | /* this knows our mktime() only uses these struct tm fields */ | ||
2960 | struct tm tm; | ||
2961 | tm.tm_sec = ((fattime ) & 0x1f) * 2; | ||
2962 | tm.tm_min = ((fattime >> 5) & 0x3f); | ||
2963 | tm.tm_hour = ((fattime >> 11) ); | ||
2964 | tm.tm_mday = ((fatdate ) & 0x1f); | ||
2965 | tm.tm_mon = ((fatdate >> 5) & 0x0f) - 1; | ||
2966 | tm.tm_year = ((fatdate >> 9) ) + 80; | ||
2967 | |||
2968 | return mktime(&tm); | ||
2969 | } | ||
2970 | |||
2971 | void fat_init(void) | 2957 | void fat_init(void) |
2972 | { | 2958 | { |
2973 | dc_lock_cache(); | 2959 | dc_lock_cache(); |