summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/i2s.c')
-rw-r--r--fw/fe310/eos/i2s.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/i2s.c b/fw/fe310/eos/i2s.c
index 0a2742b..5623add 100644
--- a/fw/fe310/eos/i2s.c
+++ b/fw/fe310/eos/i2s.c
@@ -137,7 +137,7 @@ static void _spk_vol_set(uint8_t vol) {
extern void _eos_i2s_start_pwm(void);
-void eos_i2s_init(uint8_t wakeup_cause) {
+int eos_i2s_init(uint8_t wakeup_cause) {
eos_evtq_set_handler(EOS_EVT_I2S, i2s_handle_evt);
GPIO_REG(GPIO_OUTPUT_VAL) |= (1 << I2S_PIN_CK_SW);
@@ -180,6 +180,8 @@ void eos_i2s_init(uint8_t wakeup_cause) {
GPIO_REG(GPIO_IOF_EN) &= ~I2S_PIN_PWM;
GPIO_REG(GPIO_IOF_SEL) |= I2S_PIN_PWM;
+
+ return EOS_OK;
}
void eos_i2s_start(uint32_t sample_rate, unsigned char fmt) {