summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/sdcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/sdcard.c')
-rw-r--r--fw/fe310/eos/sdcard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/sdcard.c b/fw/fe310/eos/sdcard.c
index 82b679b..6f5488d 100644
--- a/fw/fe310/eos/sdcard.c
+++ b/fw/fe310/eos/sdcard.c
@@ -352,7 +352,7 @@ static int sdc_init(uint32_t timeout) {
return EOS_OK;
}
-void eos_sdc_init(uint8_t wakeup_cause) {
+int eos_sdc_init(uint8_t wakeup_cause) {
int rv;
eos_spi_select(EOS_SPI_DEV_SDC);
@@ -363,6 +363,8 @@ void eos_sdc_init(uint8_t wakeup_cause) {
printf("SDC OK:%x\n", sdc_type);
}
eos_spi_deselect();
+
+ return EOS_OK;
}
uint8_t eos_sdc_type(void) {