X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fi2s.h;h=8758cb0080cb7e2a18e0340743495214603c1893;hb=8ad8e5d325736480a881a7f30bd757f96b87376e;hp=3ad4522e8d7983056eb0900789ebcef69c6c9d67;hpb=945370829397bb31be855a63e7c1a73933af404a;p=bertos.git diff --git a/bertos/drv/i2s.h b/bertos/drv/i2s.h index 3ad4522e..8758cb00 100644 --- a/bertos/drv/i2s.h +++ b/bertos/drv/i2s.h @@ -48,6 +48,7 @@ #ifndef DRV_I2S_H #define DRV_I2S_H +#warning __FILTER_NEXT_WARNING__ #warning This API is ALPHA! we could change it.. #include @@ -145,6 +146,13 @@ INLINE void i2s_dmaRxBuffer(I2s *i2s, void *buf, size_t len) } +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);