aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-02 15:15:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-02 15:15:21 +0000
commit351ff9c8cc28b2442dcd2d894a76abd0aa747f6e (patch)
tree567154768c34cb88c2b94a992bee181ef785ad3d /os/hal/include
parentd48b888620312fcf487a26d6adfa871e910f98f6 (diff)
downloadChibiOS-351ff9c8cc28b2442dcd2d894a76abd0aa747f6e.tar.gz
ChibiOS-351ff9c8cc28b2442dcd2d894a76abd0aa747f6e.tar.bz2
ChibiOS-351ff9c8cc28b2442dcd2d894a76abd0aa747f6e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6744 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/i2s.h14
1 files changed, 7 insertions, 7 deletions
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