/* DAC Channel Output Mode. 
Each DAC channel can be configured in Normal mode or Sample and hold mode. The output buffer can be enabled to allow a high drive capability. Before enabling output buffer, the voltage offset needs to be calibrated. This calibration is performed at the factory (loaded after reset) and can be adjusted by software during application operation. */
void dac_set_mode(uint32_t dac, uint32_t mode)
/* DAC Channel Output Mode. 
Each DAC channel can be configured in Normal mode or Sample and hold mode. The output buffer can be enabled to allow a high drive capability. Before enabling output buffer, the voltage offset needs to be calibrated. This calibration is performed at the factory (loaded after reset) and can be adjusted by software during application operation. */
void dac_set_mode(uint32_t dac, uint32_t mode)
{
	DAC_MCR(dac) |= mode;
}