diff --git a/targets/TARGET_STM/TARGET_STM32F2/analogout_device.c b/targets/TARGET_STM/TARGET_STM32F2/analogout_device.c index 6323fd73d3..3976d5b084 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/analogout_device.c +++ b/targets/TARGET_STM/TARGET_STM32F2/analogout_device.c @@ -88,7 +88,8 @@ void analogout_init(dac_t *obj, PinName pin) analogout_write_u16(obj, 0); } -void analogout_free(dac_t *obj) { +void analogout_free(dac_t *obj) +{ // Reset DAC and disable clock __HAL_RCC_DAC_FORCE_RESET(); __HAL_RCC_DAC_RELEASE_RESET();