Erik - / mbed-src2

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Sat May 16 20:34:03 2015 +0000
Parent:
541:7f313a59e20c
Commit message:
Fixed ARCH MAX SPI frequency bug

Changed in this revision

targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c	Thu May 14 07:00:08 2015 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c	Sat May 16 20:34:03 2015 +0000
@@ -214,7 +214,7 @@
 
 void spi_frequency(spi_t *obj, int hz)
 {
-#if defined(TARGET_STM32F401RE) || defined(TARGET_STM32F401VC) || defined(TARGET_F407VG)
+#if defined(TARGET_STM32F401RE) || defined(TARGET_STM32F401VC) || defined(TARGET_STM32F407VG)
     // Note: The frequencies are obtained with SPI1 clock = 84 MHz (APB2 clock)
     if (hz < 600000) {
         obj->br_presc = SPI_BAUDRATEPRESCALER_256; // 330 kHz