From acce7d8e05ac38776d6340342f6a7868df4f7f28 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 28 Nov 2021 23:53:05 +0100 Subject: lcd driver added; fixed startup code; --- fw/fe310/test/main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'fw/fe310/test') diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c index 9a4fe3c..9cab6f7 100644 --- a/fw/fe310/test/main.c +++ b/fw/fe310/test/main.c @@ -4,6 +4,8 @@ #include #include +#include +#include #include #include @@ -17,6 +19,8 @@ #include +#include + #include "status.h" #include "cell_dev.h" #include "cell_pdp.h" @@ -77,17 +81,20 @@ void app_home_page(EVEWindow *window, EVEViewStack *stack) { } int main() { + uint8_t wakeup_cause = eos_power_wakeup_cause(); + int rst = (wakeup_cause == EVE_INIT_RST); + printf("\nREADY.\n"); + printf("FREQ:%lu\n", PRCI_get_cpu_freq()); eos_init(); - app_root_init(app_home_page, -1); + app_root_init(app_home_page, 0x20); app_status_init(); app_phone_init(); app_wifi_init(); app_cell_dev_init(); app_cell_pdp_init(); app_fs_init(); - eos_evtq_loop(); } -- cgit v1.2.3