streamlined executor
This commit is contained in:
parent
bc3fa885f5
commit
1ef352200a
|
@ -2,13 +2,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "basic/basic.h"
|
#include "basic/basic.h"
|
||||||
|
|
||||||
#include "lcd/lcd.h"
|
#include "lcd/lcd.h"
|
||||||
#include "lcd/allfonts.h"
|
#include "lcd/allfonts.h"
|
||||||
#include "lcd/print.h"
|
#include "lcd/print.h"
|
||||||
|
|
||||||
#include "usb/usbmsc.h"
|
#include "usb/usbmsc.h"
|
||||||
|
|
||||||
#include "filesystem/ff.h"
|
#include "filesystem/ff.h"
|
||||||
#include "filesystem/select.h"
|
#include "filesystem/select.h"
|
||||||
#include "filesystem/execute.h"
|
#include "filesystem/execute.h"
|
||||||
|
@ -21,7 +18,6 @@ void execute_menu(void){
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void msc_menu(void){
|
void msc_menu(void){
|
||||||
DoString(0,8,"MSC Enabled.");
|
DoString(0,8,"MSC Enabled.");
|
||||||
lcdDisplay(0);
|
lcdDisplay(0);
|
||||||
|
@ -62,12 +58,10 @@ const struct MENU_DEF menu_volt = {"Akku", &adc_check};
|
||||||
const struct MENU_DEF menu_nop = {"---", NULL};
|
const struct MENU_DEF menu_nop = {"---", NULL};
|
||||||
const struct MENU_DEF menu_msc = {"MSC", &msc_menu};
|
const struct MENU_DEF menu_msc = {"MSC", &msc_menu};
|
||||||
const struct MENU_DEF menu_exe = {"Exec", &execute_menu};
|
const struct MENU_DEF menu_exe = {"Exec", &execute_menu};
|
||||||
//const struct MENU_DEF menu_exesel = {"Exec2", &select_menu};
|
|
||||||
|
|
||||||
static menuentry menu[] = {
|
static menuentry menu[] = {
|
||||||
&menu_msc,
|
&menu_msc,
|
||||||
&menu_exe,
|
&menu_exe,
|
||||||
// &menu_exesel,
|
|
||||||
&menu_nop,
|
&menu_nop,
|
||||||
&menu_mirror,
|
&menu_mirror,
|
||||||
&menu_volt,
|
&menu_volt,
|
||||||
|
@ -81,18 +75,6 @@ void main_exe(void) {
|
||||||
|
|
||||||
lcdSetPixel(0,0,0);
|
lcdSetPixel(0,0,0);
|
||||||
|
|
||||||
backlightInit();
|
|
||||||
font=&Font_7x8;
|
|
||||||
|
|
||||||
FATFS FatFs; /* File system object for logical drive */
|
|
||||||
FRESULT res;
|
|
||||||
res=f_mount(0, &FatFs);
|
|
||||||
if(res!=FR_OK){
|
|
||||||
lcdPrint("Mount:");
|
|
||||||
lcdPrintln(f_get_rc_string(res));
|
|
||||||
getInput();
|
|
||||||
};
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
lcdFill(0); // clear display buffer
|
lcdFill(0); // clear display buffer
|
||||||
lcdDisplay(0);
|
lcdDisplay(0);
|
||||||
|
|
Loading…
Reference in New Issue