2016-11-07 21:34:08 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-06-01 13:18:00 +02:00
|
|
|
* @ingroup pkg_fatfs
|
2016-11-07 21:34:08 +01:00
|
|
|
* @brief
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @brief Common defines for fatfs low-level diskio defines
|
|
|
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
|
|
|
*/
|
|
|
|
|
2017-07-05 14:54:42 +02:00
|
|
|
#ifndef FATFS_DISKIO_MTD_H
|
|
|
|
#define FATFS_DISKIO_MTD_H
|
2016-11-07 21:34:08 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fatfs/diskio.h" /* FatFs lower layer API */
|
|
|
|
|
2017-05-15 15:21:29 +02:00
|
|
|
#define RTC_YEAR_OFFSET (1900)
|
|
|
|
#define FATFS_YEAR_OFFSET (1980)
|
2016-11-07 21:34:08 +01:00
|
|
|
|
2017-05-15 15:21:29 +02:00
|
|
|
#define FIXED_BLOCK_SIZE (512)
|
2016-11-07 21:34:08 +01:00
|
|
|
|
2017-05-15 15:21:29 +02:00
|
|
|
#define FATFS_DISKIO_DSTASTUS_OK (0)
|
2016-11-07 21:34:08 +01:00
|
|
|
|
2017-05-15 15:21:29 +02:00
|
|
|
#define FATFS_DISKIO_FATTIME_YEAR_OFFS (25)
|
|
|
|
#define FATFS_DISKIO_FATTIME_MON_OFFS (21)
|
|
|
|
#define FATFS_DISKIO_FATTIME_DAY_OFFS (16)
|
|
|
|
#define FATFS_DISKIO_FATTIME_HH_OFFS (11)
|
|
|
|
#define FATFS_DISKIO_FATTIME_MM_OFFS (5)
|
2016-11-07 21:34:08 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-07-05 14:54:42 +02:00
|
|
|
#endif /* FATFS_DISKIO_MTD_H */
|
2016-11-07 21:34:08 +01:00
|
|
|
/** @} */
|