diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-18 20:30:06 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-18 20:30:06 +0000 |
commit | e5c320a0d1a00915f88b379f27e981b89a787e33 (patch) | |
tree | eb12879d39f700094105ce2134ab49e140850979 /os/hal/include/i2s.h | |
parent | 470b447644555caaa62910d7f19da1804f81b464 (diff) | |
download | ChibiOS-e5c320a0d1a00915f88b379f27e981b89a787e33.tar.gz ChibiOS-e5c320a0d1a00915f88b379f27e981b89a787e33.tar.bz2 ChibiOS-e5c320a0d1a00915f88b379f27e981b89a787e33.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4050 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/i2s.h')
-rw-r--r-- | os/hal/include/i2s.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/include/i2s.h b/os/hal/include/i2s.h index ee2fabf6e..241bb5ec7 100644 --- a/os/hal/include/i2s.h +++ b/os/hal/include/i2s.h @@ -86,6 +86,18 @@ typedef struct I2SDriver I2SDriver; }
/**
+ * @brief Starts a I2S data exchange in continuous mode.
+ *
+ * @param[in] i2sp pointer to the @p I2SDriver object
+ *
+ * @iclass
+ */
+#define i2sStartExchangeContinuousI(i2sp) { \
+ i2s_lld_start_exchange_continuous(i2sp); \
+ (i2sp)->state = I2S_ACTIVE; \
+}
+
+/**
* @brief Stops the ongoing data exchange.
* @details The ongoing data exchange, if any, is stopped, if the driver
* was not active the function does nothing.
|