X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Fyaffscfg2k.c;h=fc9466b300361d7c1370cd15ccc972564a15cbf1;hp=005a02d975ad79793d11e18046b3ac672fab21e9;hb=b4d5215f18486403d16f2e776000e43eba052f40;hpb=fd65eb6c02fba80b81f6e6f327ebb73250cbd9f5 diff --git a/direct/test-framework/yaffscfg2k.c b/direct/test-framework/yaffscfg2k.c index 005a02d..fc9466b 100644 --- a/direct/test-framework/yaffscfg2k.c +++ b/direct/test-framework/yaffscfg2k.c @@ -25,6 +25,7 @@ #include "yaffs_nandemul2k.h" #include "yaffs_trace.h" #include "yaffs_osglue.h" +#include "yaffs_nandsim_file.h" #include @@ -39,12 +40,11 @@ unsigned yaffs_trace_mask = YAFFS_TRACE_ALLOCATE | YAFFS_TRACE_BAD_BLOCKS | YAFFS_TRACE_VERIFY | - 0; -// Configuration +/* Configure the devices that will be used */ #include "yaffs_flashif2.h" #include "yaffs_m18_drv.h" @@ -59,12 +59,11 @@ int yaffs_start_up(void) return 0; start_up_called = 1; - // Stuff to configure YAFFS - // Stuff to initialise anything special (eg lock semaphore). + /* Call the OS initialisation (eg. set up lock semaphore */ yaffsfs_OSInitialisation(); + /* Install the various devices and their device drivers */ yflash2_install_drv("yflash2"); - yaffs_m18_install_drv("M18-1"); yaffs_nor_install_drv("nor"); yaffs_nandsim_install_drv("nand", "emfile-nand", 256);