mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
187:0387e8f68319
Parent:
149:156823d33999
--- a/targets/TARGET_STM/TARGET_STM32F2/spi_api.c	Fri Jun 22 16:45:37 2018 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F2/spi_api.c	Thu Sep 06 13:40:20 2018 +0100
@@ -39,20 +39,21 @@
 #include "mbed_error.h"
 
 #if DEVICE_SPI_ASYNCH
-    #define SPI_S(obj)    (( struct spi_s *)(&(obj->spi)))
+#define SPI_S(obj)    (( struct spi_s *)(&(obj->spi)))
 #else
-    #define SPI_S(obj)    (( struct spi_s *)(obj))
+#define SPI_S(obj)    (( struct spi_s *)(obj))
 #endif
 
 /*
  * Only the frequency is managed in the family specific part
  * the rest of SPI management is common to all STM32 families
  */
-int spi_get_clock_freq(spi_t *obj) {
+int spi_get_clock_freq(spi_t *obj)
+{
     struct spi_s *spiobj = SPI_S(obj);
-	int spi_hz = 0;
+    int spi_hz = 0;
 
-	/* Get source clock depending on SPI instance */
+    /* Get source clock depending on SPI instance */
     switch ((int)spiobj->spi) {
         case SPI_1:
 #if defined SPI4_BASE