From 351ff9c8cc28b2442dcd2d894a76abd0aa747f6e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 2 Mar 2014 15:15:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6744 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/i2s.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/i2s.h b/os/hal/include/i2s.h index ae7d0173b..afd605b26 100644 --- a/os/hal/include/i2s.h +++ b/os/hal/include/i2s.h @@ -41,10 +41,6 @@ */ #define I2S_MODE_SLAVE 0 #define I2S_MODE_MASTER 1 -#define I2S_MODE_TX 2 -#define I2S_MODE_RX 4 -#define I2S_MODE_TXRX (I2S_MODE_TX | I2S_MODE_RX) -#define I2S_MODE_CONTINUOUS 16 /** @} */ /*===========================================================================*/ @@ -84,6 +80,10 @@ typedef enum { * @brief Starts a I2S data exchange. * * @param[in] i2sp pointer to the @p I2SDriver object + * @param[in] n size of the transmit buffer, must be even and greater + * than zero + * @param[out] txbuf the pointer to the transmit buffer + * @param[out] rxbuf the pointer to the receive buffer * * @iclass */ @@ -141,8 +141,8 @@ typedef enum { if ((i2sp)->config->end_cb) { \ (i2sp)->state = I2S_COMPLETE; \ (i2sp)->config->end_cb(i2sp, \ - (i2sp)->config->depth / 2, \ - (i2sp)->config->depth / 2); \ + (i2sp)->config->size / 2, \ + (i2sp)->config->size / 2); \ if ((i2sp)->state == I2S_COMPLETE) \ (i2sp)->state = I2S_READY; \ } \ @@ -163,7 +163,7 @@ extern "C" { void i2sStart(I2SDriver *i2sp, const I2SConfig *config); void i2sStop(I2SDriver *i2sp); void i2sStartExchange(I2SDriver *i2sp); - void i2sStopExchange(I2SDriver *i2sp); + void i2sStopTransfer(I2SDriver *i2sp); #ifdef __cplusplus } #endif -- cgit v1.2.3