diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 19:38:41 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 19:38:41 +0200 |
commit | 3a5f92b720afcb4adac61174dbefefd420aa5319 (patch) | |
tree | dac095c17df3cc76acdfaa50a91e9012e404bab6 /code/fe310/eos/net.c | |
parent | 15385be32753cd928c708e9478eda546c3eb1644 (diff) |
spi: added wait condition; fixed init proc
Diffstat (limited to 'code/fe310/eos/net.c')
-rw-r--r-- | code/fe310/eos/net.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/code/fe310/eos/net.c b/code/fe310/eos/net.c index 2d5e05e..a198955 100644 --- a/code/fe310/eos/net.c +++ b/code/fe310/eos/net.c @@ -270,10 +270,8 @@ void eos_net_start(void) { SPI1_REG(SPI_REG_SCKDIV) = SPI_DIV_NET; SPI1_REG(SPI_REG_CSID) = SPI_CS_IDX_NET; - clear_csr(mstatus, MSTATUS_MIE); net_state_flags |= NET_FLAG_RUN; if (net_state_flags & NET_FLAG_CTS) net_xchg_next(NULL); - set_csr(mstatus, MSTATUS_MIE); } void eos_net_stop(void) { |