Skip to content

Commit 685e0be

Browse files
authored
Merge pull request #12473 from amock/fix-MCUXpresso-dac
Fix Freescale MCUXpresso AnalogOut
2 parents 3662759 + b3c0ef8 commit 685e0be

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)