summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-03-29 13:32:44 +0200
committerUros Majstorovic <majstor@majstor.org>2021-03-29 13:32:44 +0200
commitbee76182044dd50cf561d1a76c05af7c7be68dfa (patch)
treeda21522a6e085ef58400502385bc8d691695ebac
parentf5d49ec238769ca9c1fc58bf21e21f94a24f41ee (diff)
added page touch ui event. added ui event handler to form create
-rw-r--r--fw/fe310/test/cell_pdp.c5
-rw-r--r--fw/fe310/test/main.c8
-rw-r--r--fw/fe310/test/modem.c2
-rw-r--r--fw/fe310/test/phone.c4
-rw-r--r--fw/fe310/test/status.c3
-rw-r--r--fw/fe310/test/wifi.c5
6 files changed, 5 insertions, 22 deletions
diff --git a/fw/fe310/test/cell_pdp.c b/fw/fe310/test/cell_pdp.c
index 8bc8c41..9fc4a21 100644
--- a/fw/fe310/test/cell_pdp.c
+++ b/fw/fe310/test/cell_pdp.c
@@ -4,9 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
-#include <uart.h>
#include <net.h>
#include <cell.h>
@@ -91,7 +88,7 @@ void app_cell_pdp(EVEWindow *window, EVEViewStack *stack) {
},
};
- EVEForm *form = eve_form_create(window, stack, spec, 3, app_cell_pdp_action, app_cell_pdp_close);
+ EVEForm *form = eve_form_create(window, stack, spec, 3, NULL, app_cell_pdp_action, app_cell_pdp_close);
}
void app_cell_pdp_action(EVEForm *form) {
diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c
index 7f0fc43..1021507 100644
--- a/fw/fe310/test/main.c
+++ b/fw/fe310/test/main.c
@@ -4,11 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
-#include <i2s.h>
-#include <net.h>
-#include <cell.h>
#include <eve/eve.h>
#include <eve/eve_kbd.h>
@@ -28,6 +23,7 @@
#include "phone.h"
#include "modem.h"
#include "wifi.h"
+#include "test.h"
void app_home_page(EVEWindow *window, EVEViewStack *stack) {
EVEWidgetSpec spec[] = {
@@ -57,7 +53,7 @@ void app_home_page(EVEWindow *window, EVEViewStack *stack) {
},
};
- EVEForm *form = eve_form_create(window, stack, spec, 4, NULL, NULL);
+ EVEForm *form = eve_form_create(window, stack, spec, 4, NULL, NULL, NULL);
}
int main() {
diff --git a/fw/fe310/test/modem.c b/fw/fe310/test/modem.c
index b78a3b4..a2bb0c6 100644
--- a/fw/fe310/test/modem.c
+++ b/fw/fe310/test/modem.c
@@ -4,8 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
#include <uart.h>
#include <net.h>
#include <cell.h>
diff --git a/fw/fe310/test/phone.c b/fw/fe310/test/phone.c
index 0bf1c04..c447234 100644
--- a/fw/fe310/test/phone.c
+++ b/fw/fe310/test/phone.c
@@ -4,8 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
#include <i2s.h>
#include <net.h>
#include <cell.h>
@@ -92,7 +90,7 @@ void app_phone(EVEWindow *window, EVEViewStack *stack) {
},
};
- EVEForm *form = eve_form_create(window, stack, spec, 1, app_phone_action, NULL);
+ EVEForm *form = eve_form_create(window, stack, spec, 1, NULL, app_phone_action, NULL);
}
void app_phone_action(EVEForm *form) {
diff --git a/fw/fe310/test/status.c b/fw/fe310/test/status.c
index b7307b2..42d193a 100644
--- a/fw/fe310/test/status.c
+++ b/fw/fe310/test/status.c
@@ -4,9 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
-#include <i2s.h>
#include <net.h>
#include <cell.h>
diff --git a/fw/fe310/test/wifi.c b/fw/fe310/test/wifi.c
index 76e811d..814d808 100644
--- a/fw/fe310/test/wifi.c
+++ b/fw/fe310/test/wifi.c
@@ -4,9 +4,6 @@
#include <string.h>
#include <eos.h>
-#include <event.h>
-#include <spi.h>
-#include <uart.h>
#include <net.h>
#include <wifi.h>
@@ -99,7 +96,7 @@ void app_wifi(EVEWindow *window, EVEViewStack *stack) {
},
};
- EVEForm *form = eve_form_create(window, stack, spec, 3, app_wifi_action, app_wifi_close);
+ EVEForm *form = eve_form_create(window, stack, spec, 3, NULL, app_wifi_action, app_wifi_close);
wifi_scan();
}