fatfs_diskio_mtd.h
1 /*
2  * Copyright (C) 2016 Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
18 #ifndef FATFS_DISKIO_MTD_H
19 #define FATFS_DISKIO_MTD_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include "fatfs/diskio.h" /* FatFs lower layer API */
26 
27 #define RTC_YEAR_OFFSET (1900)
28 #define FATFS_YEAR_OFFSET (1980)
29 
30 #define FIXED_BLOCK_SIZE (512)
31 
32 #define FATFS_DISKIO_DSTASTUS_OK (0)
33 
34 #define FATFS_DISKIO_FATTIME_YEAR_OFFS (25)
35 #define FATFS_DISKIO_FATTIME_MON_OFFS (21)
36 #define FATFS_DISKIO_FATTIME_DAY_OFFS (16)
37 #define FATFS_DISKIO_FATTIME_HH_OFFS (11)
38 #define FATFS_DISKIO_FATTIME_MM_OFFS (5)
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* FATFS_DISKIO_MTD_H */
45