aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/i2s.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/i2s.h')
-rw-r--r--os/hal/include/i2s.h12
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.