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.
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_STM32F407VG/analogout_api.c
- Revision:
- 428:4ddf7f7eabbb
- Parent:
- 296:ec1b66a3d094
--- a/targets/hal/TARGET_STM/TARGET_STM32F407VG/analogout_api.c Thu Dec 04 07:30:08 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_STM32F407VG/analogout_api.c Mon Dec 08 07:30:07 2014 +0000 @@ -33,18 +33,13 @@ #include "pinmap.h" #include "mbed_error.h" #include "stm32f4xx_hal.h" +#include "PeripheralPins.h" #define RANGE_12BIT (0xFFF) DAC_HandleTypeDef DacHandle; static DAC_ChannelConfTypeDef sConfig; -static const PinMap PinMap_DAC[] = { - {PA_4, DAC_0, STM_PIN_DATA(STM_MODE_ANALOG, GPIO_NOPULL, 0xFF)}, // DAC_OUT1 - {PA_5, DAC_1, STM_PIN_DATA(STM_MODE_ANALOG, GPIO_NOPULL, 0xFF)}, // DAC_OUT2 - {NC, NC, 0} -}; - void analogout_init(dac_t *obj, PinName pin) { uint32_t channel ;