/* ---------------------------------------------------------------------------*/
-#define MAX_DEVICE 2
-#define MAX_DRIVE 2
+#define MAX_DRIVE 4
#define BLOCK_SIZE 512
-struct fat_device_s {
- FATFS dd;
- bool active;
-};
-
struct cpm_drive_s {
uint8_t drv;
};
static uint8_t disk_buffer[BLOCK_SIZE];
-static struct fat_device_s device_table[MAX_DEVICE];
static struct cpm_drive_s drv_table[MAX_DRIVE];
/*
goto out;
}
- /* TODO: this has to be done somewhere globaly */
-
- if (!device_table[0].active) {
- f_mount(&device_table[0].dd, "0:", 0);
- device_table[0].active = true;
- }
- if (!device_table[1].active) {
- f_mount(&device_table[1].dd, "1:", 0);
- device_table[1].active = true;
- }
-
/*
uint32_t dph = ((uint32_t)msg[4] << 16) + ((uint16_t)msg[3] << 8) + msg[2];
*/
z80_memfifo_init(i, 0);
bg_setstat(handle_msg_handling, 0);
- f_mount(NULL, "0:", 0);
- device_table[0].active = false;
- f_mount(NULL, "1:", 0);
- device_table[1].active = false;
-
}
/*--------------------------------------------------------------------------*/