From bbd45c46a75edd930486980c0d6a94c52d8cf403 Mon Sep 17 00:00:00 2001 From: Leo C Date: Fri, 15 May 2015 14:59:49 +0200 Subject: fatfs f_mount now allways done globally at start up --- avr/z180-serv.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'avr/z180-serv.c') diff --git a/avr/z180-serv.c b/avr/z180-serv.c index c80daeb..22dafe1 100644 --- a/avr/z180-serv.c +++ b/avr/z180-serv.c @@ -104,15 +104,9 @@ void do_msg_echo(uint8_t subf, int len, uint8_t * msg) /* ---------------------------------------------------------------------------*/ -#define MAX_DEVICE 2 #define MAX_DRIVE 2 #define BLOCK_SIZE 512 -struct fat_device_s { - FATFS dd; - bool active; -}; - struct cpm_drive_s { uint8_t drv; @@ -122,7 +116,6 @@ struct cpm_drive_s { }; 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]; /* @@ -158,17 +151,6 @@ void do_msg_cpm_login(uint8_t subf, int len, uint8_t * msg) 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]; */ @@ -489,11 +471,6 @@ void restart_z180_serv(void) 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; - } /*--------------------------------------------------------------------------*/ -- cgit v1.2.3