From 7d03a941be6e9226e71cb5f5b4f7949e06bbfb02 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 9 Dec 2021 23:50:58 +0100 Subject: improved init process --- fw/fe310/test/main.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'fw/fe310/test/main.c') diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c index f7c85e5..13c113e 100644 --- a/fw/fe310/test/main.c +++ b/fw/fe310/test/main.c @@ -5,7 +5,7 @@ #include #include -#include +#include #include #include @@ -28,7 +28,8 @@ #include "modem.h" #include "wifi.h" #include "cam.h" -#include "fs.h" +// #include "fs.h" +#include "audio.h" #include "test.h" void app_home_page(EVEWindow *window, EVEViewStack *stack) { @@ -63,12 +64,14 @@ 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, @@ -77,17 +80,13 @@ void app_home_page(EVEWindow *window, EVEViewStack *stack) { }, }; - EVEForm *form = eve_form_create(window, stack, spec, 7, NULL, NULL, NULL); + EVEForm *form = eve_form_create(window, stack, spec, 6, NULL, NULL, NULL); } int main() { - uint8_t wakeup_cause = eos_power_wakeup_cause(); - int rst = (wakeup_cause == EOS_PWR_WAKE_RST); - - printf("\nREADY.\n"); - printf("FREQ:%lu\n", PRCI_get_cpu_freq()); - eos_init(); + printf("FREQ:%lu\n", PRCI_get_cpu_freq()); + printf("\nREADY.\n"); app_root_init(app_home_page, 0x20); app_status_init(); @@ -95,6 +94,7 @@ int main() { app_wifi_init(); app_cell_dev_init(); app_cell_pdp_init(); - app_fs_init(); + // app_fs_init(); + audio_start(); eos_evtq_loop(); } -- cgit v1.2.3