Skip to content

Commit b3c0ef8

Browse files
author
Alan Mock
committed
The DAC init was using the ADC pinmap. This fixes that.
1 parent 829a3cd commit b3c0ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/analogout_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void _analogout_init_direct(dac_t *obj, const PinMap *pinmap)
5252

5353
void analogout_init(dac_t *obj, PinName pin)
5454
{
55-
int peripheral = (int)pinmap_peripheral(pin, PinMap_ADC);
55+
int peripheral = (int)pinmap_peripheral(pin, PinMap_DAC);
5656

5757
const PinMap static_pinmap = {pin, peripheral, 0};
5858

0 commit comments

Comments
 (0)