Loading...
Searching...
No Matches
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
22extern "C" {
23#endif
24
25#include "fatfs/source/ff.h"
26#include "fatfs/source/diskio.h" /* FatFs lower layer API */
27
28#define RTC_YEAR_OFFSET (1900)
29#define FATFS_YEAR_OFFSET (1980)
30
31#define FIXED_BLOCK_SIZE (512)
32
33#define FATFS_DISKIO_DSTASTUS_OK (0)
34
35#define FATFS_DISKIO_FATTIME_YEAR_OFFS (25)
36#define FATFS_DISKIO_FATTIME_MON_OFFS (21)
37#define FATFS_DISKIO_FATTIME_DAY_OFFS (16)
38#define FATFS_DISKIO_FATTIME_HH_OFFS (11)
39#define FATFS_DISKIO_FATTIME_MM_OFFS (5)
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* FATFS_DISKIO_MTD_H */