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 
9 #pragma once
10 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "fatfs/source/ff.h"
25 #include "fatfs/source/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