mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Revision:
201:fa203361dc70
Parent:
181:a4cbdfbbd2f4
Child:
217:d0ccc61c1fd4
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_L053R8/analogout_api.c	Tue May 20 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_L053R8/analogout_api.c	Wed May 21 10:30:07 2014 +0100
@@ -75,10 +75,11 @@
 }
 
 void analogout_free(dac_t *obj) {
-    // Disable DAC
+    // Reset DAC and disable clock
     __DAC_FORCE_RESET();
     __DAC_RELEASE_RESET();
     __DAC_CLK_DISABLE();
+
     // Configure GPIO
     pin_function(obj->channel, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0));
 }