diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-23 20:08:02 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-23 20:08:02 +0200 |
commit | 69ed847740e3efb5c5ff6319629c93d236150959 (patch) | |
tree | a479305afd898870f2ac0e55fe04be788e768fca /fw/fe310/eos/eos.c | |
parent | 38e19a65fda7a37688320b4b732eb1113bbcbad7 (diff) |
i2s driver fixed; added uart programming;
Diffstat (limited to 'fw/fe310/eos/eos.c')
-rw-r--r-- | fw/fe310/eos/eos.c | 5 |
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); |