summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eos.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/eos/eos.c
parent38e19a65fda7a37688320b4b732eb1113bbcbad7 (diff)
i2s driver fixed; added uart programming;
Diffstat (limited to 'fw/fe310/eos/eos.c')
-rw-r--r--fw/fe310/eos/eos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fw/fe310/eos/eos.c b/fw/fe310/eos/eos.c
index a099fc1..83ab288 100644
--- a/fw/fe310/eos/eos.c
+++ b/fw/fe310/eos/eos.c
@@ -13,6 +13,7 @@
#include "soc/uart.h"
#include "soc/spi.h"
+#include "dev/flash.h"
#include "dev/spi.h"
#include "dev/net.h"
#include "dev/lcd.h"
@@ -32,11 +33,11 @@ uint8_t eos_init(void) {
uint8_t wakeup_cause;
int rv;
- SPI0_REG(SPI_REG_SCKDIV) = 8;
-
PRCI_use_default_clocks();
PRCI_use_pll(PLL_REFSEL_HFXOSC, 0, 1, 31, 1, -1, -1, -1);
+ eos_flash_init();
+
wakeup_cause = eos_pwr_wakeup_cause();
eos_evtq_init(wakeup_cause);