diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-10 13:36:09 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-10 13:36:09 +0000 |
commit | a8693baa481e1c4d91379af08bbc9f459b1b4d56 (patch) | |
tree | 190b755173b3e2159025260994a1d3208241ab4c /os/hal/templates/hal_spi_lld.c | |
parent | 0da6de11ee208137162df9206b3b5731e2980d28 (diff) | |
download | ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.tar.gz ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.tar.bz2 ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.zip |
SPIv1 and SPIv2 circular mode added. Rework of RCC files and all dependencies inside STM32 drivers. Documentation fixes in some HAL modules.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11247 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/hal_spi_lld.c')
-rw-r--r-- | os/hal/templates/hal_spi_lld.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/hal/templates/hal_spi_lld.c b/os/hal/templates/hal_spi_lld.c index 6dd582677..7e75f1299 100644 --- a/os/hal/templates/hal_spi_lld.c +++ b/os/hal/templates/hal_spi_lld.c @@ -222,6 +222,20 @@ void spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf) { }
+#if (SPI_SUPPORTS_CIRCULAR == TRUE) || defined(__DOXYGEN__)
+/**
+ * @brief Aborts the ongoing SPI operation, if any.
+ *
+ * @param[in] spip pointer to the @p SPIDriver object
+ *
+ * @notapi
+ */
+void spi_lld_abort(SPIDriver *spip) {
+
+ (void)spip;
+}
+#endif /* SPI_SUPPORTS_CIRCULAR == TRUE */
+
/**
* @brief Exchanges one frame using a polled wait.
* @details This synchronous function exchanges one frame using a polled
@@ -233,6 +247,8 @@ void spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf) { * @param[in] spip pointer to the @p SPIDriver object
* @param[in] frame the data frame to send over the SPI bus
* @return The received data frame from the SPI bus.
+ *
+ * @notapi
*/
uint16_t spi_lld_polled_exchange(SPIDriver *spip, uint16_t frame) {
|