Hanna
Sourcecode Batteriemanagementsystem
fat_config.h
gehe zur Dokumentation dieser Datei
1 
14 /*
15  * Copyright (c) 2006-2011 by Roland Riegel <feedback@roland-riegel.de>
16  *
17  * This file is free software; you can redistribute it and/or modify
18  * it under the terms of either the GNU General Public License version 2
19  * or the GNU Lesser General Public License version 2.1, both as
20  * published by the Free Software Foundation.
21  */
22 
23 #ifndef FAT_CONFIG_H
24 #define FAT_CONFIG_H
25 
26 //#include "../avr_compiler.h"
27 #include <stdint.h>
28 #include "sd_raw_config.h"
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
51 #define FAT_WRITE_SUPPORT SD_RAW_WRITE_SUPPORT
52 
59 #define FAT_LFN_SUPPORT 1
60 
67 #define FAT_DATETIME_SUPPORT 1
68 
75 #define FAT_FAT32_SUPPORT SD_RAW_SDHC
76 
85 #define FAT_DELAY_DIRENTRY_UPDATE 0
86 
103 #define fat_get_datetime(year, month, day, hour, min, sec) \
104  get_datetime(year, month, day, hour, min, sec)
105 /* forward declaration for the above */
106 void get_datetime(uint16_t* year, uint8_t* month, uint8_t* day, uint8_t* hour, uint8_t* min, uint8_t* sec);
107 
112 #define FAT_FS_COUNT 1
113 
118 #define FAT_FILE_COUNT 1
119 
124 #define FAT_DIR_COUNT 2
125 
130 #if FAT_FAT32_SUPPORT
131  typedef uint32_t cluster_t;
132 #else
133  typedef uint16_t cluster_t;
134 #endif
135 
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif
141 
SD-Card Reader Bibliothek von Roland Riegel.
void get_datetime(uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hour, uint8_t *min, uint8_t *sec)
This function is the link between the hardware RTC and the timekeeping function to the sd-reader code...
Definition: fat.c:2452