Rev Author Line No. Line
1144 kaklik 1  
2 /*
3 * Copyright (c) 2006-2007 by Roland Riegel <feedback@roland-riegel.de>
4 *
5 * This file is free software; you can redistribute it and/or modify
6 * it under the terms of either the GNU General Public License version 2
7 * or the GNU Lesser General Public License version 2.1, both as
8 * published by the Free Software Foundation.
9 */
10  
11 #ifndef FAT16_CONFIG_H
12 #define FAT16_CONFIG_G
13  
14 /**
15 * \addtogroup fat16
16 *
17 * @{
18 */
19 /**
20 * \file
21 * FAT16 configuration (license: GPLv2 or LGPLv2.1)
22 */
23  
24 /**
25 * \ingroup fat16_config
26 * Controls FAT16 write support.
27 *
28 * Set to 1 to enable FAT16 write support, set to 0 to disable it.
29 */
30 #define FAT16_WRITE_SUPPORT 1
31  
32 /**
33 * \ingroup fat16_config
34 * Controls FAT16 date and time support.
35 *
36 * Set to 1 to enable FAT16 date and time stamping support.
37 */
38 #define FAT16_DATETIME_SUPPORT 0
39  
40 /**
41 * \ingroup fat16_config
42 * Determines the function used for retrieving current date and time.
43 *
44 * Define this to the function call which shall be used to retrieve
45 * current date and time.
46 *
47 * \note Used only when FAT16_DATETIME_SUPPORT is 1.
48 *
49 * \param[out] year Pointer to a \c uint16_t which receives the current year.
50 * \param[out] month Pointer to a \c uint8_t which receives the current month.
51 * \param[out] day Pointer to a \c uint8_t which receives the current day.
52 * \param[out] hour Pointer to a \c uint8_t which receives the current hour.
53 * \param[out] min Pointer to a \c uint8_t which receives the current minute.
54 * \param[out] sec Pointer to a \c uint8_t which receives the current sec.
55 */
56 #define fat16_get_datetime(year, month, day, hour, min, sec) \
57 get_datetime(year, month, day, hour, min, sec)
58 /* forward declaration for the above */
59 void get_datetime(uint16_t* year, uint8_t* month, uint8_t* day, uint8_t* hour, uint8_t* min, uint8_t* sec);
60  
61 /**
62 * \ingroup fat16_config
63 * Maximum number of filesystem handles.
64 */
65 #define FAT16_FS_COUNT 1
66  
67 /**
68 * \ingroup fat16_config
69 * Maximum number of file handles.
70 */
71 #define FAT16_FILE_COUNT 1
72  
73 /**
74 * \ingroup fat16_config
75 * Maximum number of directory handles.
76 */
77 #define FAT16_DIR_COUNT 2
78  
79 /**
80 * @}
81 */
82  
83 #endif
84