From 69ed847740e3efb5c5ff6319629c93d236150959 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 23 Sep 2022 20:08:02 +0200 Subject: i2s driver fixed; added uart programming; --- fw/fe310/phone/main.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'fw/fe310/phone/main.c') diff --git a/fw/fe310/phone/main.c b/fw/fe310/phone/main.c index 125a9d2..8696ebe 100644 --- a/fw/fe310/phone/main.c +++ b/fw/fe310/phone/main.c @@ -3,9 +3,14 @@ #include #include +#include +#include #include #include +#include +#include +#include #include #include @@ -23,6 +28,7 @@ #include "phone.h" #include "modem.h" #include "timer.h" +#include "flash.h" #include "test.h" static const uint32_t touch_matrix[6] = {0xf7ac,0x440,0x3e704,0xfffff718,0x108a3,0xfff76d42}; @@ -53,6 +59,12 @@ static int home_page(EVEWindow *window, EVEViewStack *stack) { .widget.tspec.page.title = "Timer", .widget.tspec.page.constructor = timer_app, }, + { + .widget.type = EVE_WIDGET_TYPE_PAGE, + .widget.g.w = APP_SCREEN_W, + .widget.tspec.page.title = "Flash", + .widget.tspec.page.constructor = flash_app, + }, { .widget.type = EVE_WIDGET_TYPE_PAGE, .widget.g.w = APP_SCREEN_W, @@ -69,9 +81,8 @@ static int home_page(EVEWindow *window, EVEViewStack *stack) { void mem_print(void); -#include - int main() { + int i; uint8_t wakeup_cause; wakeup_cause = eos_init(); @@ -80,9 +91,12 @@ int main() { printf("FREQ:%lu\n", PRCI_get_cpu_freq()); printf("\nREADY.\n"); + mem_print(); eos_gt911_cfg_print(); + // eos_flash_fast(); + wifi_init(); cell_init(); phone_init(); -- cgit v1.2.3