summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/spi_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/spi_dev.c')
-rw-r--r--fw/fe310/eos/spi_dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/spi_dev.c b/fw/fe310/eos/spi_dev.c
index 09a4a83..b060bad 100644
--- a/fw/fe310/eos/spi_dev.c
+++ b/fw/fe310/eos/spi_dev.c
@@ -21,7 +21,7 @@ static uint8_t spi_dev;
static uint8_t spi_lock;
static uint16_t spi_div[EOS_SPI_MAX_DEV];
-void eos_spi_dev_init(uint8_t wakeup_cause) {
+int eos_spi_dev_init(uint8_t wakeup_cause) {
int i;
for (i=0; i<EOS_SPI_MAX_DEV; i++) {
@@ -35,6 +35,8 @@ void eos_spi_dev_init(uint8_t wakeup_cause) {
GPIO_REG(GPIO_OUTPUT_XOR) &= ~(1 << spi_cfg[i].cspin);
}
}
+
+ return EOS_OK;
}
int eos_spi_select(unsigned char dev) {