int FS_Init(void) { int x; x = FS_X_OS_Init(); /* Init the OS, e.g. create semaphores */ #if FS_USE_FAT_FSL if (x == 0) { FS__fat_block_init(); /* Init the FAT layers memory pool */ } #endif return x; }
FS_i32 FS_Init(void) { FS_i32 i = _VOLUMES; /* Register work area for logical drives */ for(i=0;i<_VOLUMES;i++) { f_mount(i, &fs[i]); } #ifndef __BOOT__ FS_X_OS_Init ( ); #endif return 0; }