mbed library sources

Dependents:   Marvino mbot

Fork of mbed-src by mbed official

Revision:
582:a89625bcd809
Parent:
573:ad23fe03a082
--- a/targets/hal/TARGET_STM/TARGET_STM32F7/analogout_api.c	Thu Jul 02 16:30:08 2015 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F7/analogout_api.c	Mon Jul 06 09:00:34 2015 +0100
@@ -67,7 +67,7 @@
     DacHandle.Instance = DAC;
 
     status = HAL_DAC_Init(&DacHandle);
-    if ( status != HAL_OK ) {
+    if (status != HAL_OK) {
         error("HAL_DAC_Init failed");
     }
 
@@ -75,7 +75,7 @@
     sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
 
     if (obj->channel == 1) {
-        channel = DAC_CHANNEL_1; 
+        channel = DAC_CHANNEL_1;
     } else {
         channel = DAC_CHANNEL_2;
     }
@@ -108,7 +108,7 @@
         status = HAL_DAC_SetValue(&DacHandle, DAC_CHANNEL_2, DAC_ALIGN_12B_R, value);
     }
 
-    if ( status != HAL_OK ) {
+    if (status != HAL_OK) {
         error("DAC pin mapping failed");
     }
 }
@@ -120,7 +120,7 @@
     } else if (obj->channel == 2) {
         return (int)HAL_DAC_GetValue(&DacHandle, DAC_CHANNEL_2);
     }
-	return 0;	/* Just silented warning */
+    return 0;   /* Just silented warning */
 }
 
 void analogout_write(dac_t *obj, float value)