Mbed for VNG board
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F072RB/analogout_api.c
- Revision:
- 414:4ec4c5b614b0
- Parent:
- 402:09075a3b15e3
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F072RB/analogout_api.c Mon Nov 24 07:30:07 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F072RB/analogout_api.c Tue Nov 25 07:15:09 2014 +0000 @@ -33,15 +33,10 @@ #include "cmsis.h" #include "pinmap.h" #include "mbed_error.h" +#include "PeripheralPins.h" #define DAC_RANGE (0xFFF) // 12 bits -static const PinMap PinMap_DAC[] = { - {PA_4, DAC_1, STM_PIN_DATA(STM_MODE_ANALOG, GPIO_NOPULL, 0)}, // DAC_OUT1 - {PA_5, DAC_1, STM_PIN_DATA(STM_MODE_ANALOG, GPIO_NOPULL, 0)}, // DAC_OUT2 (Warning: LED1 is also on this pin) - {NC, NC, 0} -}; - static DAC_HandleTypeDef DacHandle; void analogout_init(dac_t *obj, PinName pin)