summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/app
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/app')
-rw-r--r--fw/fe310/eos/app/Makefile15
-rw-r--r--fw/fe310/eos/app/app_root.c88
-rw-r--r--fw/fe310/eos/app/app_root.h12
-rw-r--r--fw/fe310/eos/app/app_status.c17
-rw-r--r--fw/fe310/eos/app/app_status.h4
5 files changed, 0 insertions, 136 deletions
diff --git a/fw/fe310/eos/app/Makefile b/fw/fe310/eos/app/Makefile
deleted file mode 100644
index fe0ba21..0000000
--- a/fw/fe310/eos/app/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-include ../../common.mk
-
-obj = app_root.o app_status.o
-
-
-%.o: %.c %.h
- $(CC) $(CFLAGS) -c $<
-
-%.o: %.S
- $(CC) $(CFLAGS) -c $<
-
-all: $(obj)
-
-clean:
- rm -f *.o
diff --git a/fw/fe310/eos/app/app_root.c b/fw/fe310/eos/app/app_root.c
deleted file mode 100644
index fac9548..0000000
--- a/fw/fe310/eos/app/app_root.c
+++ /dev/null
@@ -1,88 +0,0 @@
-#include <stdlib.h>
-
-#include "net.h"
-
-#include "eve/eve.h"
-#include "eve/eve_kbd.h"
-#include "eve/eve_font.h"
-
-#include "eve/screen/window.h"
-#include "eve/screen/page.h"
-#include "eve/screen/form.h"
-
-#include "eve/widget/widgets.h"
-
-#include "app_status.h"
-#include "app_root.h"
-
-#define KBD_X 0
-#define KBD_Y 575
-#define KBD_W 480
-#define KBD_H 225
-
-static EVEKbd kbd;
-static EVEFont font;
-static EVEWindowRoot win_root;
-static EVEWindowKbd win_kbd;
-static EVEWindow win_status;
-static EVEWindow win_main;
-static EVEView view_status;
-static EVEViewStack view_stack;
-
-EVEWindowRoot *app_root(void) {
- return &win_root;
-}
-
-void app_root_refresh(void) {
- eve_spi_start();
- eve_window_root_draw(app_root());
- eve_spi_stop();
-}
-
-void app_root_init(eve_view_constructor_t home_page, int b) {
- EVERect g;
-
- eve_spi_start();
-
- if (b >= 0) eve_brightness(b);
-
- eve_font_init(&font, APP_FONT_HANDLE);
-
- g.x = 0;
- g.y = 0;
- g.w = APP_SCREEN_W;
- g.h = APP_SCREEN_H;
- eve_window_init_root(&win_root, &g, "root", &font);
-
- g.x = KBD_X;
- g.y = KBD_Y;
- g.w = KBD_W;
- g.h = KBD_H;
- eve_kbd_init(&kbd, &g, win_root.mem_next, &win_root.mem_next);
- eve_window_init_kbd(&win_kbd, &g, &win_root, "kbd", &kbd);
-
- g.x = 0;
- g.y = 0;
- g.w = APP_SCREEN_W;
- g.h = APP_STATUS_H;
- eve_window_init(&win_status, &g, (EVEWindow *)&win_root, "status");
- eve_view_init(&view_status, &win_status, app_status_draw, app_status_touch, NULL, NULL);
-
- g.x = 0;
- g.y = APP_STATUS_H;
- g.w = APP_SCREEN_W;
- g.h = APP_SCREEN_H - APP_STATUS_H;
- eve_window_init(&win_main, &g, (EVEWindow *)&win_root, "main");
-
- eve_view_stack_init(&view_stack);
- eve_view_create(&win_main, &view_stack, home_page);
-
- eve_window_append(&win_status);
- eve_window_append(&win_main);
-
- eve_window_root_draw(&win_root);
-
- eve_spi_stop();
-
- eos_net_acquire_for_evt(EOS_EVT_UI | EVE_ETYPE_INTR, 1);
-}
diff --git a/fw/fe310/eos/app/app_root.h b/fw/fe310/eos/app/app_root.h
deleted file mode 100644
index b085344..0000000
--- a/fw/fe310/eos/app/app_root.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <stdint.h>
-
-#define APP_SCREEN_W 480
-#define APP_SCREEN_H 800
-#define APP_STATUS_H 60
-
-#define APP_FONT_HANDLE 31
-
-EVEWindowRoot *app_root(void);
-void app_root_refresh(void);
-
-void app_root_init(eve_view_constructor_t home_page, int b);
diff --git a/fw/fe310/eos/app/app_status.c b/fw/fe310/eos/app/app_status.c
deleted file mode 100644
index 4ab0a97..0000000
--- a/fw/fe310/eos/app/app_status.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdlib.h>
-
-#include "eve/eve.h"
-#include "eve/eve_kbd.h"
-#include "eve/eve_font.h"
-
-#include "eve/screen/window.h"
-
-#include "app_status.h"
-
-uint8_t app_status_draw(EVEView *view, uint8_t tag0) {
- return eve_view_clear(view, tag0, 0);
-}
-
-int app_status_touch(EVEView *view, EVETouch *touch, uint16_t evt, uint8_t tag0) {
- return 0;
-}
diff --git a/fw/fe310/eos/app/app_status.h b/fw/fe310/eos/app/app_status.h
deleted file mode 100644
index 9b2ac66..0000000
--- a/fw/fe310/eos/app/app_status.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <stdint.h>
-
-int app_status_touch(EVEView *view, EVETouch *touch, uint16_t evt, uint8_t tag0);
-uint8_t app_status_draw(EVEView *view, uint8_t tag0);