Contiki-NG
config.h
1#ifndef EFSL_CONFIG_H_
2#define EFSL_CONFIG_H_
3
4/* Close enough */
5#define HW_ENDPOINT_LPC2000_SD
6
7/* Memory configuration
8 --------------------
9
10 * Here you must configure wheter your processor can access memory byte
11 * oriented. All x86 processors can do it, AVR's can do it to. Some DSP
12 * or other microcontrollers can't. If you have an 8 bit system you're safe.
13 * If you are really unsure, leave the setting commented out, it will be slower
14 * but it will work for sure.
15*/
16
17 /* disabled for ARM (mt): #define BYTE_ALIGNMENT */
18
19/* Cache configuration
20 -------------------
21
22 * Here you must configure how much memory of cache you can/want to use.
23 * The number you put at IOMAN_NUMBUFFER is multiplied by 512. So 1 means
24 * 512 bytes cache, 4 means 2048 bytes cache. More is better.
25 * The number after IOMAN_NUMITERATIONS should be untouched.
26 * The last field (IOMAN_DO_MEMALLOC) is to tell ioman to allocate it's
27 * own memory in it's structure, or not. If you choose to do it yourself
28 * you will have to pass a pointer to the memory as the last argument of
29 * ioman_init.
30*/
31 /*#define IOMAN_NUMBUFFER 1*/
32 #define IOMAN_NUMBUFFER 6
33 #define IOMAN_NUMITERATIONS 3
34 #define IOMAN_DO_MEMALLOC
35
36/* Cluster pre-allocation
37 ----------------------
38
39 * When writing files, the function that performs the actual write has to
40 * calculate how many clusters it will need for that request. It then allocates
41 * that number of new clusters to the file. Since this involves some calculations
42 * and writing of the FAT, you might find it beneficial to limit the number of
43 * allocations, and allow fwrite to pre-allocate a number of clusters extra.
44 * This setting determines how many clusters will be extra allocated whenever
45 * this is required.
46 * Take in carefull consideration how large your clustersize is, putting 10 here
47 * with a clustersize of 32kb means you might waste 320 kb.
48 * The first option is for preallocating files, the other is used when enlarging
49 * a directory to accomodate more files
50*/
51 /*#define CLUSTER_PREALLOC_FILE 0*/
52 #define CLUSTER_PREALLOC_FILE 2
53 #define CLUSTER_PREALLOC_DIRECTORY 0
54
55
56/* Endianess configuration
57 -----------------------
58
59 * Here you can configure wheter your architecture is little or big endian. This
60 * is important since all FAT structures are stored in intel little endian order.
61 * So if you have a big endian system the library has to convert all figures to
62 * big endian in order to work.
63 */
64 #define LITTLE_ENDIAN
65
66
67/* Date and Time support
68 ---------------------
69
70 * Here you can enable or disable date and time support. If you enable
71 * it you will have to create 6 functions, that are described in the
72 * EFSL manual. If the functions are not present when linking your
73 * program with the library you will get unresolved dependencies.
74 */
75 /*#define DATE_TIME_SUPPORT*/
76
77/* Error reporting support
78 -----------------------
79
80 * When you receive an error in userland, it usually only gives limited
81 * information (most likely, fail or success). If error detection and
82 * reporting is important for you, you can enable more detailed error
83 * reporting here. This is optional, the costs are 1 byte per object,
84 * and a small increase in code size.
85 * You can enable error recording for all object, or you can select the
86 * object manually.
87 * For full error reporting use FULL_ERROR_SUPPORT
88 * For only the base-core of the library use BASE_ERROR_SUPPORT
89 * For IO/Man use ERRSUP_IOMAN
90 * For Disc use ERRSUP_IOMAN
91 * For Part use ERRSUP_PARTITION
92 * For Fs use ERRSUP_FILESYSTEM
93 * For File use ERRSUP_FILE
94*/
95
96 #define FULL_ERROR_SUPPORT
97 /*#define BASE_ERROR_SUPPORT*/
98
99/* List options
100 ------------
101
102 * In this section youcan configure what kind of data you will get from
103 * directory listing requests. Please refer to the documentation for
104 * more information
105*/
106
107#define LIST_MAXLENFILENAME 12
108
109
110
111
112/* Debugging configuration
113 -----------------------
114
115 * Here you can configure the debugging behaviour. Debugging is different
116 * on every platform (see debug.h for more information).
117 * If your hardware has no means of output (printf) dont define any anything,
118 * and nothing will happen. For real world use debugging should be turned off.
119*/
120
121/* #define DEBUG */
122
123#define lpc2000_debug_printf dbg_blocking_printf
124
125#endif