mirror of https://github.com/ARMmbed/mbed-os.git
Add call to DAC_Enable as this is no longer done as part of DAC_Init
Fixes Issue #3999 Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>pull/4974/head
parent
36c1fbb5df
commit
f5efb93e50
|
@ -40,6 +40,8 @@ void analogout_init(dac_t *obj, PinName pin)
|
||||||
DAC_Init(dac_bases[obj->dac], &dac_config);
|
DAC_Init(dac_bases[obj->dac], &dac_config);
|
||||||
|
|
||||||
DAC_SetBufferValue(dac_bases[obj->dac], 0, 0);
|
DAC_SetBufferValue(dac_bases[obj->dac], 0, 0);
|
||||||
|
|
||||||
|
DAC_Enable(dac_bases[obj->dac], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void analogout_free(dac_t *obj)
|
void analogout_free(dac_t *obj)
|
||||||
|
|
Loading…
Reference in New Issue