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