Just fix some compile errors

This commit is contained in:
Stefan `Sec` Zehl 2011-06-17 16:19:33 +02:00
parent 9ef9f3c7b5
commit 6d4c09066d
1 changed files with 0 additions and 37 deletions

View File

@ -64,43 +64,6 @@ static menuentry menu[] = {
static const struct MENU mainmenu = {"Mainmenu", menu}; static const struct MENU mainmenu = {"Mainmenu", menu};
void handleMenu(const struct MENU *the_menu) ; void handleMenu(const struct MENU *the_menu) ;
void delayms(int);
uint8_t getInput(void) {
uint8_t result = BTN_NONE;
if (gpioGetValue(RB_BTN3)==0) {
while(gpioGetValue(RB_BTN3)==0);
result += BTN_UP;
}
if (gpioGetValue(RB_BTN2)==0) {
while(gpioGetValue(RB_BTN2)==0);
result += BTN_DOWN;
}
if (gpioGetValue(RB_BTN4)==0) {
while(gpioGetValue(RB_BTN4)==0);
result += BTN_ENTER;
}
if (gpioGetValue(RB_BTN0)==0) {
while(gpioGetValue(RB_BTN0)==0);
result += BTN_LEFT;
}
if (gpioGetValue(RB_BTN1)==0) {
while(gpioGetValue(RB_BTN1)==0);
result += BTN_RIGHT;
}
if (result == (BTN_LEFT+BTN_TOP+BTN_ENTER)){ /* Development hack */
gotoISP();
}
return result;
}
void module_menutest(void) { void module_menutest(void) {