how i can use dac1 channel2 without dual mode. Due to manual it is possible to used this dac independently. In the dac_lld.c it seems that it is not possible with the current Version (code snip is part of dac_lld_start_conversion):
Code: Select all
/* DAC configuration.*/
#if STM32_DAC_DUAL_MODE == FALSE
cr = DAC_CR_DMAEN1 | (dacp->grpp->trigger << 3) | DAC_CR_TEN1 | DAC_CR_EN1;
dacp->params->dac->CR &= dacp->params->regmask;
dacp->params->dac->CR |= cr << dacp->params->regshift;
#else
dacp->params->dac->CR = 0;
cr = DAC_CR_DMAEN1 | (dacp->grpp->trigger << 3) | DAC_CR_TEN1 | DAC_CR_EN1
| (dacp->grpp->trigger << 19) | DAC_CR_TEN2 | DAC_CR_EN2;
dacp->params->dac->CR = cr;
#endifIt just used DAC1 Channel 2 if both are used and dual mode is activated. Is this correct?
The DMAEN2 bit is also not set.
Thank you for reply.