FreeCalypso > hg > ffs-editor
comparison src/cs/drivers/drv_app/ffs/board/tdata.h @ 0:92470e5d0b9e
src: partial import from FC Selenite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 15 May 2020 01:28:16 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:92470e5d0b9e |
|---|---|
| 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); |
