Fix copyright
[yaffs2.git] / direct / test-framework / yaffsnewcfg.c
1 /*
2  * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Charles Manning <charles@aleph1.co.uk>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 /*
14  * yaffscfg2k.c  The configuration for the "direct" use of yaffs.
15  *
16  * This file is intended to be modified to your requirements.
17  * There is no need to redistribute this file.
18  */
19
20 #include "yaffscfg.h"
21 #include "yaffsfs.h"
22 #include "yaffs_trace.h"
23 #include "yramsim.h"
24
25 unsigned yaffs_trace_mask = 
26
27         YAFFS_TRACE_SCAN |  
28         YAFFS_TRACE_GC |
29         YAFFS_TRACE_ERASE | 
30         YAFFS_TRACE_ERROR | 
31         YAFFS_TRACE_TRACING | 
32         YAFFS_TRACE_ALLOCATE | 
33         YAFFS_TRACE_BAD_BLOCKS |
34         YAFFS_TRACE_VERIFY | 
35         
36         0;
37         
38
39
40 // Configuration
41
42
43 int yaffs_start_up(void)
44 {
45         // Stuff to configure YAFFS
46         // Stuff to initialise anything special (eg lock semaphore).
47         yaffsfs_OSInitialisation();
48         yramsim_CreateRamSim("yaffs2",1,1000,0,0);
49         yramsim_CreateRamSim("p0",0,0x400,1,0xff);
50         yramsim_CreateRamSim("p1",0,0x400,1,0);
51         
52         return 0;
53 }
54
55
56