comparison src/cs/drivers/drv_app/ffs/board/tdata.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
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);