summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/i2c.c')
-rw-r--r--fw/fe310/eos/i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/i2c.c b/fw/fe310/eos/i2c.c
index f296bc7..37c5cf8 100644
--- a/fw/fe310/eos/i2c.c
+++ b/fw/fe310/eos/i2c.c
@@ -9,8 +9,10 @@
#include "i2s.h"
#include "i2c.h"
-void eos_i2c_init(uint8_t wakeup_cause) {
+int eos_i2c_init(uint8_t wakeup_cause) {
GPIO_REG(GPIO_IOF_SEL) &= ~IOF0_I2C0_MASK;
+
+ return EOS_OK;
}
int eos_i2c_start(uint32_t baud_rate) {