SiLabs: analogout_api:

Analog_out fixed. Channel enabled in analogout_init.
pull/1501/head
jhokajar 2015-12-11 06:28:58 +02:00 committed by Steven Cooreman
parent 83401e502b
commit 2961d4cc33
1 changed files with 1 additions and 2 deletions

View File

@ -83,9 +83,8 @@ void analogout_init(dac_t *obj, PinName pin)
}
/* Use default channel settings */
DAC_InitChannel_TypeDef initChannel = DAC_INITCHANNEL_DEFAULT;
initChannel.enable = true;
DAC_InitChannel(obj->dac, &initChannel, obj->channel);
}
void analogout_enable(dac_t *obj, uint8_t enable)