diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-12-06 20:04:08 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-12-06 20:04:08 +0100 |
commit | 0bcbb62eb408e6fcbfe78fbc2756dfb1b9ae6a37 (patch) | |
tree | 8517595e723686fd8954f0640c5fc40c36e88a67 /code/fe310/eos/i2s.c | |
parent | bc37c471fbb233a2a17119091b10f7adf8045a95 (diff) |
net refactor: alloc reverted to take void arg; EOS_NET_FLAGs renamed
Diffstat (limited to 'code/fe310/eos/i2s.c')
-rw-r--r-- | code/fe310/eos/i2s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/fe310/eos/i2s.c b/code/fe310/eos/i2s.c index 4c36d55..d71a31d 100644 --- a/code/fe310/eos/i2s.c +++ b/code/fe310/eos/i2s.c @@ -8,6 +8,7 @@ #include "eos.h" #include "interrupt.h" #include "event.h" +#include "net.h" #include "i2s.h" #include "i2s_def.h" @@ -114,7 +115,7 @@ extern void _eos_i2s_start_pwm(void); void eos_i2s_init(void) { eos_evtq_set_handler(EOS_EVT_AUDIO, i2s_handler_evt); - eos_evtq_set_flags(EOS_EVT_AUDIO | I2S_ETYPE_MIC, EOS_EVT_FLAG_NET_BUF_ACQ); + eos_evtq_set_flags(EOS_EVT_AUDIO | I2S_ETYPE_MIC, EOS_NET_FLAG_BACQ); GPIO_REG(GPIO_INPUT_EN) &= ~(1 << I2S_PIN_CK); GPIO_REG(GPIO_OUTPUT_EN) |= (1 << I2S_PIN_CK); |