Ooops forgot file

This commit is contained in:
Stefan `Sec` Zehl 2011-08-04 00:18:06 +02:00
parent 5a8735fdc5
commit b51e6885d0
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
#include <sysinit.h>
#include <string.h>
#include "basic/basic.h"
#include "lcd/lcd.h"
#include "lcd/print.h"
#include "usb/usbmsc.h"
/**************************************************************************/
void gotoISP(void) {
DoString(0,0,"Enter ISP!");
lcdDisplay();
ISPandReset();
}
void msc_menu(void){
DoString(0,8,"MSC Enabled.");
lcdDisplay();
usbMSCInit();
while(!getInputRaw())delayms(10);
DoString(0,16,"MSC Disabled.");
usbMSCOff();
};
extern void (*ram)(void);
static const struct MENU mainmenu = {"Mainmenu", {
{"Run Loadable", &ram},
{"Invoke ISP", &gotoISP},
{"MSC", &msc_menu},
{NULL,NULL}
}};
/**************************************************************************/
void main_l0dable(void) {
lcdClear();
lcdDisplay();
handleMenu(&mainmenu);
gotoISP();
};