static void Response(MIDSRCDTA *dat) { if (dat->Val == 1 && cardstate == CARD_IN ) cardexsit = 0 ; else cardexsit = 1 ; if ( cardstate == CARD_IN ) FS_IoCtl("mmc:",FS_CMD_MOUNT,0,0); else FS_IoCtl("mmc:",FS_CMD_UNMOUNT,0,0); // MMC_Initialize(); }
unsigned int DeinitDev(unsigned handle) { FS_IoCtl("mmc:",FS_CMD_MOUNT,0,0); return 1; }
unsigned int InitDev(unsigned int handle) { // printf("mmc init \n"); FS_IoCtl("mmc:",FS_CMD_UNMOUNT,0,0); }