From 37659f115f6629b7ea47a5ec9c77f1088b7efcce Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Wed, 24 Dec 2014 17:58:38 +1100 Subject: [PATCH] minor change so the SPI rates below 1.25 mhz are not available as this may cause an ASSERT in the leaflabs code --- STM32F1XX/libraries/SPI/src/SPI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STM32F1XX/libraries/SPI/src/SPI.h b/STM32F1XX/libraries/SPI/src/SPI.h index 734c7df..a506a06 100644 --- a/STM32F1XX/libraries/SPI/src/SPI.h +++ b/STM32F1XX/libraries/SPI/src/SPI.h @@ -311,7 +311,7 @@ private: SPISettings _settings; spi_dev *spi_d; uint8_t _SSPin; - const uint8_t _clockDividerToFrequenyMap[8]={SPI_4_5MHZ, SPI_1_125MHZ, SPI_281_250KHZ, SPI_1_125MHZ, SPI_9MHZ, SPI_2_25MHZ, SPI_1_125MHZ };// should really be //{SPI_4_5MHZ, SPI_1_125MHZ, SPI_281_250KHZ, SPI_140_625KHZ, SPI_9MHZ, SPI_2_25MHZ, SPI_562_500KHZ }; but the processor won't support the lower speeds so they have been set to 1.25 mhz + const uint8_t _clockDividerToFrequenyMap[8]={SPI_4_5MHZ, SPI_1_125MHZ, SPI_1_125MHZ, SPI_1_125MHZ, SPI_9MHZ, SPI_2_25MHZ, SPI_1_125MHZ };// should really be //{SPI_4_5MHZ, SPI_1_125MHZ, SPI_281_250KHZ, SPI_140_625KHZ, SPI_9MHZ, SPI_2_25MHZ, SPI_562_500KHZ }; but the processor won't support the lower speeds so they have been set to 1.25 mhz };