Skip to content

Commit

Permalink
Fixed bug #705.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8851 35acf78f-673a-0410-8e92-d51de3d6d3f4
  • Loading branch information
gdisirio committed Feb 6, 2016
1 parent e32b52d commit b9ad4f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions os/hal/ports/STM32/LLD/SPIv2/spi_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,13 @@ 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.*/
spip->rxdmamode = (spip->rxdmamode & ~STM32_DMA_CR_SIZE_MASK) |
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.*/
Expand Down
4 changes: 0 additions & 4 deletions os/hal/ports/STM32/LLD/SPIv2/spi_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,6 @@ struct SPIDriver {
* @brief TX DMA mode bit mask.
*/
uint32_t txdmamode;
/**
* @brief Frame size in bytes.
*/
size_t fsize;
};

/*===========================================================================*/
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
- RT: Removed the p_msg field from the thread_t structure saving a
msg_t-sized field from the structure. Messages now use a new field
into the p_u union. Now synchronous messages are even faster.
- HAL: Fixed unused variable in STM32 SPIv2 driver (bug #705)(backported
to 16.1.3).
- HAL: Fixed chDbgAssert() still called from STM32 SPIv1 driver (bug #704)
(backported to 3.0.6 and 16.1.3).
- HAL: Fixed broken demo for STM32F429 (bug #703)(backported to 16.1.3).
Expand Down

0 comments on commit b9ad4f4

Please sign in to comment.