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_STM32F0/spi_api.c	Fri Jun 22 16:45:37 2018 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F0/spi_api.c	Thu Sep 06 13:40:20 2018 +0100
@@ -37,17 +37,18 @@
 #include "PeripheralPins.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) {
-	/* SPI_1, SPI_2. Source CLK is PCKL1 */
+int spi_get_clock_freq(spi_t *obj)
+{
+    /* SPI_1, SPI_2. Source CLK is PCKL1 */
     return HAL_RCC_GetPCLK1Freq();
 }