From: asterix Date: Fri, 16 Sep 2011 12:29:09 +0000 (+0000) Subject: Add wait dma transfer functions. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8f8e44cf0d438323590fcad4165ba41fff31c304;p=bertos.git Add wait dma transfer functions. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5052 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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);