/* DAC Channel Output Buffer Enable. 
Enable a digital to analog converter channel output drive buffer. This is an optional amplifying buffer that provides additional drive for the output signal. The buffer is enabled by default after a reset and needs to be explicitly disabled if required. */
void dac_buffer_enable(uint32_t dac, int channel)
/* DAC Channel Output Buffer Enable. 
Enable a digital to analog converter channel output drive buffer. This is an optional amplifying buffer that provides additional drive for the output signal. The buffer is enabled by default after a reset and needs to be explicitly disabled if required. */
void dac_buffer_enable(uint32_t dac, int channel)
{
	switch (channel) {
	case DAC_CHANNEL1:
		DAC_CR(dac) &= ~DAC_CR_BOFF1;
		break;
	case DAC_CHANNEL2:
		DAC_CR(dac) &= ~DAC_CR_BOFF2;
		break;
	case DAC_CHANNEL_BOTH:
		DAC_CR(dac) &= ~(DAC_CR_BOFF1 | DAC_CR_BOFF2);
		break;
	}
}