Skip to content

Commit d10d5af

Browse files
Merge pull request #4842 from NXPmicro/Fix_Analogout
Add call to DAC_Enable as this is no longer done as part …
2 parents 0f0a461 + 8a8553e commit d10d5af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/analogout_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ void analogout_init(dac_t *obj, PinName pin)
4040
DAC_Init(dac_bases[obj->dac], &dac_config);
4141

4242
DAC_SetBufferValue(dac_bases[obj->dac], 0, 0);
43+
44+
DAC_Enable(dac_bases[obj->dac], true);
4345
}
4446

4547
void analogout_free(dac_t *obj)

0 commit comments

Comments
 (0)