FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/ffs/board/tdata.h @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 /****************************************************************************** | |
2 * Flash File System (ffs) | |
3 * Idea, design and coding by Mads Meisner-Jensen, mmj@ti.com | |
4 * | |
5 * ffs test data | |
6 * | |
7 * $Id: tdata.h 1.4 Mon, 08 Apr 2002 10:02:52 +0200 tsj $ | |
8 * | |
9 ******************************************************************************/ | |
10 | |
11 #define TEST_DATA_NUM 11 | |
12 | |
13 | |
14 /****************************************************************************** | |
15 * Global Macros | |
16 ******************************************************************************/ | |
17 | |
18 #define TDATA(index) (char *) tdata[index], sdata[index] | |
19 | |
20 // Make <addr, size> arguments with a string | |
21 #define TDATA_STRING(string) (char *) string, strlen(string) | |
22 | |
23 // This is guaranteed to be at least the size of fs.filesize_max | |
24 // NOTEME: not any more | |
25 #define TDATA_HUGE (TEST_DATA_NUM - 1) | |
26 | |
27 // This is to use while testing in target | |
28 #define TDATA_BIG 3 | |
29 | |
30 // This is guaranteed to be at most four bytes | |
31 #define TDATA_TINY (0) | |
32 | |
33 | |
34 /****************************************************************************** | |
35 * Globals and Prototypes | |
36 ******************************************************************************/ | |
37 | |
38 extern char *tdata[TEST_DATA_NUM]; | |
39 extern int sdata[TEST_DATA_NUM]; | |
40 | |
41 | |
42 int test_tdata_init(void); |