summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/main.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-23 20:08:02 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-23 20:08:02 +0200
commit69ed847740e3efb5c5ff6319629c93d236150959 (patch)
treea479305afd898870f2ac0e55fe04be788e768fca /fw/fe310/phone/main.c
parent38e19a65fda7a37688320b4b732eb1113bbcbad7 (diff)
i2s driver fixed; added uart programming;
Diffstat (limited to 'fw/fe310/phone/main.c')
-rw-r--r--fw/fe310/phone/main.c18
1 files changed, 16 insertions, 2 deletions
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 <unistd.h>
#include <string.h>
+#include <encoding.h>
+#include <platform.h>
#include <prci_driver.h>
#include <eos.h>
+#include <soc/pwr.h>
+#include <dev/flash.h>
+#include <dev/gt911.h>
#include <dev/eve.h>
#include <eve/eve.h>
@@ -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};
@@ -56,6 +62,12 @@ static int home_page(EVEWindow *window, EVEViewStack *stack) {
{
.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,
.widget.tspec.page.title = "Test",
.widget.tspec.page.constructor = test_app,
},
@@ -69,9 +81,8 @@ static int home_page(EVEWindow *window, EVEViewStack *stack) {
void mem_print(void);
-#include <dev/gt911.h>
-
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();