FreeCalypso > hg > tcs211-c139
comparison chipsetsw/drivers/drv_app/ffs/board/tdata.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
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); |