Loading...
Searching...
No Matches
fatfs_diskio_mtd.h
1/*
2 * SPDX-FileCopyrightText: 2016 Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include "fatfs/source/ff.h"
22#include "fatfs/source/diskio.h" /* FatFs lower layer API */
23
24#define RTC_YEAR_OFFSET (1900)
25#define FATFS_YEAR_OFFSET (1980)
26
27#define FIXED_BLOCK_SIZE (512)
28
29#define FATFS_DISKIO_DSTASTUS_OK (0)
30
31#define FATFS_DISKIO_FATTIME_YEAR_OFFS (25)
32#define FATFS_DISKIO_FATTIME_MON_OFFS (21)
33#define FATFS_DISKIO_FATTIME_DAY_OFFS (16)
34#define FATFS_DISKIO_FATTIME_HH_OFFS (11)
35#define FATFS_DISKIO_FATTIME_MM_OFFS (5)
36
37#ifdef __cplusplus
38}
39#endif
40