From 8f8e44cf0d438323590fcad4165ba41fff31c304 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 16 Sep 2011 12:29:09 +0000 Subject: [PATCH] Add wait dma transfer functions. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5052 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2s.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bertos/drv/i2s.h b/bertos/drv/i2s.h index 3ad4522e..1f30a87c 100644 --- a/bertos/drv/i2s.h +++ b/bertos/drv/i2s.h @@ -145,6 +145,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); -- 2.25.1