void full_msc() { MSCenable(); lcdPrintln("MSC enabled."); lcdDisplay(); while(getInputRaw()!=BTN_ENTER) { __WFI(); }; lcdPrintln("MSC disabled"); lcdDisplay(); MSCdisable(); };
void msc_menu(void){ MSCenable(); lcdPrintln("MSC enabled."); lcdDisplay(); getInputWaitRelease(); getInputWait(); lcdPrintln("disconnect"); lcdDisplay(); MSCdisable(); fsReInit(); getInputWaitRelease(); }
//# MENU MSC void msc_menu(){ MSCenable(); lcdPrintln("MSC enabled."); getInputWaitRelease(); while(getInputRaw()!=BTN_ENTER){ if(getInputRaw()==BTN_RIGHT) lcdPrintln("."); lcdDisplay(); __WFI(); }; lcdPrintln("disconnect"); lcdDisplay(); MSCdisable(); fsReInit(); getInputWaitRelease(); };
void full_msc(){ MSCenable(); lcdPrintln("FLASHMSC enabled."); lcdNl(); lcdNl(); lcdDisplay(); while(getInputRaw()!=BTN_ENTER){ uint32_t min = mscDisk_minAddressWR(); uint32_t max = mscDisk_maxAddressWR(); lcdMoveCrsr(0,-16); lcdPrint("MIN:"); lcdPrintln(IntToStr(min,8,F_SSPACE)); lcdPrint("MAX:"); lcdPrintln(IntToStr(max,8,F_SSPACE)); lcdDisplay(); if(min == 0 && max == 2097151) { break; } }; lcdPrintln("FLASHMSC disabled"); lcdDisplay(); MSCdisable(); };
void doMSC(){ MSCenable(); lcdPrintln("MSC enabled."); lcdDisplay(); getInputWaitRelease(); while(getInputRaw()!=BTN_ENTER){ uint32_t max = mscDisk_maxAddressWR(); lcdPrint("MAX:"); lcdPrintln(IntToStr(max,8,F_SSPACE)); lcdDisplay(); lcdMoveCrsr(0,-8); if(max == 1572863) { break; } //__WFI(); }; lcdPrintln("disconnect"); lcdDisplay(); MSCdisable(); fsReInit(); getInputWaitRelease(); };