summaryrefslogtreecommitdiff
path: root/code/fe310/eos/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/net.c')
-rw-r--r--code/fe310/eos/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/fe310/eos/net.c b/code/fe310/eos/net.c
index bcfa1f2..7ef1745 100644
--- a/code/fe310/eos/net.c
+++ b/code/fe310/eos/net.c
@@ -273,7 +273,7 @@ void eos_net_start(uint32_t sckdiv) {
SPI_FMT_LEN(8);
// enable CS pin for selected channel/pin
- SPI1_REG(SPI_REG_CSID) = 2;
+ SPI1_REG(SPI_REG_CSID) = SPI_IDX_SS;
// There is no way here to change the CS polarity.
// SPI1_REG(SPI_REG_CSDEF) = 0xFFFF;