summaryrefslogtreecommitdiff
path: root/fw/fe310/test/main.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-28 23:53:05 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-28 23:53:05 +0100
commitacce7d8e05ac38776d6340342f6a7868df4f7f28 (patch)
treec0e2f3934b82967e4c2aff4a3dfcc5802bc94232 /fw/fe310/test/main.c
parent0b0972ce96a59fb9b59c0b166e0174ba4d8dd198 (diff)
lcd driver added; fixed startup code;
Diffstat (limited to 'fw/fe310/test/main.c')
-rw-r--r--fw/fe310/test/main.c11
1 files changed, 9 insertions, 2 deletions
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 <string.h>
#include <eos.h>
+#include <timer.h>
+#include <power.h>
#include <eve/eve.h>
#include <eve/eve_kbd.h>
@@ -17,6 +19,8 @@
#include <app/app_root.h>
+#include <prci_driver.h>
+
#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();
}