mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
arch/arm/src/stm32/stm32_spi.c: Removed unnecessary (and incorrect) speed limitation
This commit is contained in:
committed by
Gregory Nutt
parent
dd4fc9f5c3
commit
a7e56359a4
@@ -1122,13 +1122,6 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency)
|
|||||||
uint16_t setbits;
|
uint16_t setbits;
|
||||||
uint32_t actual;
|
uint32_t actual;
|
||||||
|
|
||||||
/* Limit to max possible (if STM32_SPI_CLK_MAX is defined in board.h) */
|
|
||||||
|
|
||||||
if (frequency > STM32_SPI_CLK_MAX)
|
|
||||||
{
|
|
||||||
frequency = STM32_SPI_CLK_MAX;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Has the frequency changed? */
|
/* Has the frequency changed? */
|
||||||
|
|
||||||
if (frequency != priv->frequency)
|
if (frequency != priv->frequency)
|
||||||
|
|||||||
Reference in New Issue
Block a user