#ifndef DRV_I2S_H
#define DRV_I2S_H
+#warning __FILTER_NEXT_WARNING__
#warning This API is ALPHA! we could change it..
#include <cfg/compiler.h>
}
+INLINE void i2s_dmaTxWait(I2s *i2s)
+{
+ ASSERT(i2s->ctx.tx_wait);
+ i2s->ctx.tx_wait(i2s);
+}
+
+
INLINE void i2s_dmaStartTxStreaming(I2s *i2s, void *buf, size_t len, size_t slice_len, i2s_dma_callback_t callback)
{
ASSERT(i2s->ctx.tx_start);
ASSERT(len % slice_len == 0);
ASSERT(callback);
- i2s->ctx.rx_callback = callback;
- i2s->ctx.rx_slice_len = slice_len;
+ i2s->ctx.tx_callback = callback;
+ i2s->ctx.tx_slice_len = slice_len;
i2s->ctx.tx_start(i2s, buf, len, slice_len);
}