You are on page 1of 1

//PARTITIONING:

/* Volume management table defined by user (required when _MULTI_PARTITI


ON == 1) */
/* Initialize a brand-new disk drive mapped to physical drive 0 */
DWORD plist[] = {50, 50, 0, 0}; /* Divide drive into two partitions */
BYTE work[_MAX_SS];
FRESULT res2 = f_fdisk(0, plist, work);

/* Divide physical drive 0 */

f_mount(LUN_ID_SD_MMC_0_MEM, &fs);
ical drive 0 */
f_mkfs(LUN_ID_SD_MMC_0_MEM, 0, 0);
ogical drive 0. 2nd argument is ignored. */
f_mount(LUN_ID_SD_MMC_0_MEM, 0);
logical drive 0 */

/* Register work area to the log

f_mount(LUN_ID_SD_MMC_1_MEM, &fs2);
logical drive 1 */
f_mkfs(LUN_ID_SD_MMC_1_MEM, 0, 0);
ogical drive 1. 2nd argument is ignored. */
f_mount(LUN_ID_SD_MMC_1_MEM, 0);
logical drive 1 */

/* Register a work area to the

/* Create FAT volume on the l


/* Unregister work area from the

/* Create FAT volume on the l


/* Unregister work area from the

// END PARTITIONING
/** notes **/

-check if segregating fs and fs2 file systems actuall makes a difference

You might also like