/* DAC Channel Enable. 
Enable a digital to analog converter channel. After setting this enable, the DAC requires a t */
void dac_enable(data_channel dac_channel)
/* DAC Channel Enable. 
Enable a digital to analog converter channel. After setting this enable, the DAC requires a t */
void dac_enable(data_channel dac_channel)
{
	switch (dac_channel) {
	case CHANNEL_1:
		DAC_CR |= DAC_CR_EN1;
		break;
	case CHANNEL_2:
		DAC_CR |= DAC_CR_EN2;
		break;
	case CHANNEL_D:
		DAC_CR |= (DAC_CR_EN1 | DAC_CR_EN2);
		break;
	}
}