• R/O
  • SSH
  • HTTPS

chibios: 提交


Commit MetaInfo

修订版15838 (tree)
时间2022-11-15 20:39:40
作者gdisirio

Log Message

Removed unused field, fixed doc tags.

更改概述

差异

--- trunk/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c (revision 15837)
+++ trunk/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c (revision 15838)
@@ -15,7 +15,7 @@
1515 */
1616
1717 /**
18- * @file SPIv3/hal_spi_v2_lld.c
18+ * @file SPIv1/hal_spi_v2_lld.c
1919 * @brief STM32 SPI (v2) subsystem low level driver source.
2020 *
2121 * @addtogroup SPI
@@ -132,7 +132,7 @@
132132
133133 /* SPI setup.*/
134134 if (spip->config->slave == false) {
135- cr1 |= SPI_CR1_MSTR;
135+ cr1 |= SPI_CR1_SSM | SPI_CR1_SSI | SPI_CR1_MSTR;
136136 cr2 |= SPI_CR2_SSOE;
137137 }
138138
--- trunk/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.h (revision 15837)
+++ trunk/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.h (revision 15838)
@@ -427,8 +427,6 @@
427427 #define spi_lld_driver_fields \
428428 /* Pointer to the SPIx registers block.*/ \
429429 SPI_TypeDef *spi; \
430- /** DMA type for this instance.*/ \
431- bool is_bdma; \
432430 /* Receive DMA stream.*/ \
433431 const stm32_dma_stream_t *dmarx; \
434432 /* Transmit DMA stream.*/ \
Show on old repository browser