diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-06 12:03:26 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-06 12:03:26 +0000 |
commit | 33c0aa4fa5e0e78c04a67e7595d2aaf840cc6c3c (patch) | |
tree | 0dd28deb00435a1d83668a453e1b3de68e63d923 /os/hal/ports/STM32/LLD | |
parent | 3048f02dd498e3de3f27202e4997daaf549d3c17 (diff) | |
download | ChibiOS-33c0aa4fa5e0e78c04a67e7595d2aaf840cc6c3c.tar.gz ChibiOS-33c0aa4fa5e0e78c04a67e7595d2aaf840cc6c3c.tar.bz2 ChibiOS-33c0aa4fa5e0e78c04a67e7595d2aaf840cc6c3c.zip |
Fixed bug #705.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8851 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv2/spi_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv2/spi_lld.h | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c index ca869c551..167e28b4c 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c @@ -415,7 +415,6 @@ void spi_lld_start(SPIDriver *spip) { STM32_DMA_CR_PSIZE_BYTE | STM32_DMA_CR_MSIZE_BYTE;
spip->txdmamode = (spip->txdmamode & ~STM32_DMA_CR_SIZE_MASK) |
STM32_DMA_CR_PSIZE_BYTE | STM32_DMA_CR_MSIZE_BYTE;
- spip->fsize = sizeof (uint8_t);
}
else {
/* Frame width is larger than 8 bits.*/
@@ -423,7 +422,6 @@ void spi_lld_start(SPIDriver *spip) { STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD;
spip->txdmamode = (spip->txdmamode & ~STM32_DMA_CR_SIZE_MASK) |
STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD;
- spip->fsize = sizeof (uint16_t);
}
/* SPI setup and enable.*/
diff --git a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.h b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.h index 781aa24fd..e2bcb124e 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.h +++ b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.h @@ -488,10 +488,6 @@ struct SPIDriver { * @brief TX DMA mode bit mask.
*/
uint32_t txdmamode;
- /**
- * @brief Frame size in bytes.
- */
- size_t fsize;
};
/*===========================================================================*/
|