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/eos/eos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fw/fe310/eos/eos.c') 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); -- cgit v1.2.3