summaryrefslogtreecommitdiff
path: root/fw/fe310/test/main.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-05-13 12:26:19 +0200
committerUros Majstorovic <majstor@majstor.org>2022-05-13 12:26:19 +0200
commit9ccb4db8d59ec9dab33ee8617d462f21a8bb4fa8 (patch)
treea4f8ba9375a4ee82bae6ddc0cb3a35227f6f9469 /fw/fe310/test/main.c
parent45f0d9b890b086493f9bb06428c46cd802324223 (diff)
touch controller/eve fixes
Diffstat (limited to 'fw/fe310/test/main.c')
-rw-r--r--fw/fe310/test/main.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c
index 52d281b..36ad5b8 100644
--- a/fw/fe310/test/main.c
+++ b/fw/fe310/test/main.c
@@ -32,6 +32,8 @@
#include "ecp.h"
#include "test.h"
+const uint32_t _eos_touch_matrix[6] = {0xf7ac,0x440,0x3e704,0xfffff718,0x108a3,0xfff76d42};
+
void app_home_page(EVEWindow *window, EVEViewStack *stack) {
EVEWidgetSpec spec[] = {
/*
@@ -65,13 +67,13 @@ void app_home_page(EVEWindow *window, EVEViewStack *stack) {
.widget.spec.page.title = "Camera",
.widget.spec.page.constructor = app_cam
},
+ */
{
.widget.type = EVE_WIDGET_TYPE_PAGE,
.widget.g.w = APP_SCREEN_W,
.widget.spec.page.title = "File system",
.widget.spec.page.constructor = app_fs
},
- */
{
.widget.type = EVE_WIDGET_TYPE_PAGE,
.widget.g.w = APP_SCREEN_W,
@@ -80,22 +82,26 @@ void app_home_page(EVEWindow *window, EVEViewStack *stack) {
},
};
- EVEForm *form = eve_form_create(window, stack, spec, 1, NULL, NULL, NULL);
+ EVEForm *form = eve_form_create(window, stack, spec, 2, NULL, NULL, NULL);
}
void print_mem(void);
int main() {
eos_init();
+ // eos_run_once();
+
printf("FREQ:%lu\n", PRCI_get_cpu_freq());
printf("\nREADY.\n");
- app_root_init(app_home_page, 0x20);
- // app_phone_init();
- // app_wifi_init();
- // app_cell_dev_init();
- // app_cell_pdp_init();
- // app_fs_init();
+ app_root_init(app_home_page, 0x10);
+ app_phone_init();
+ app_wifi_init();
+ app_cell_dev_init();
+ app_cell_pdp_init();
+ app_fs_init();
+ // audio_start();
+ // app_ecp_init();
eos_evtq_loop();
}