mbed library sources. Supersedes mbed-src.

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

Revision:
187:0387e8f68319
Parent:
176:447f873cad2f
--- a/targets/TARGET_STM/TARGET_STM32F0/analogout_device.c	Fri Jun 22 16:45:37 2018 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F0/analogout_device.c	Thu Sep 06 13:40:20 2018 +0100
@@ -35,7 +35,8 @@
 #include "mbed_error.h"
 #include "PeripheralPins.h"
 
-void analogout_init(dac_t *obj, PinName pin) {
+void analogout_init(dac_t *obj, PinName pin)
+{
     DAC_ChannelConfTypeDef sConfig = {0};
 
     // Get the peripheral name from the pin and assign it to the object
@@ -73,7 +74,7 @@
     obj->handle.Instance = (DAC_TypeDef *)(obj->dac);
     obj->handle.State = HAL_DAC_STATE_RESET;
 
-    if (HAL_DAC_Init(&obj->handle) != HAL_OK ) {
+    if (HAL_DAC_Init(&obj->handle) != HAL_OK) {
         error("HAL_DAC_Init failed");
     }
 
@@ -87,7 +88,8 @@
     analogout_write_u16(obj, 0);
 }
 
-void analogout_free(dac_t *obj) {
+void analogout_free(dac_t *obj)
+{
     // Reset DAC and disable clock
     __HAL_RCC_DAC1_FORCE_RESET();
     __HAL_RCC_DAC1_RELEASE_RESET();