Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32F0/analogout_api.c
- Revision:
- 165:e614a9f1c9e2
- Parent:
- 149:156823d33999
--- a/targets/TARGET_STM/TARGET_STM32F0/analogout_api.c Wed May 10 12:06:41 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F0/analogout_api.c Fri May 26 12:39:01 2017 +0100
@@ -59,7 +59,7 @@
obj->pin = pin;
// Enable DAC clock
- __DAC1_CLK_ENABLE();
+ __HAL_RCC_DAC1_CLK_ENABLE();
// Configure DAC
DacHandle.Instance = (DAC_TypeDef *)(obj->dac);
@@ -78,9 +78,9 @@
void analogout_free(dac_t *obj) {
// Reset DAC and disable clock
- __DAC1_FORCE_RESET();
- __DAC1_RELEASE_RESET();
- __DAC1_CLK_DISABLE();
+ __HAL_RCC_DAC1_FORCE_RESET();
+ __HAL_RCC_DAC1_RELEASE_RESET();
+ __HAL_RCC_DAC1_CLK_DISABLE();
// Configure GPIO
pin_function(obj->pin, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0));
