/* Start DAC ouput. Initialize DAC, set clock and timing, and set DAC to given mode.  */
static void start_dac(void)
/* Start DAC ouput. Initialize DAC, set clock and timing, and set DAC to given mode.  */
static void start_dac(void)
{
	sysclk_enable_peripheral_clock(DACC);
	dacc_reset(DACC);
	dacc_set_transfer_mode(DACC, 0);
	dacc_set_timing(DACC, 0x10, 0x60);
	dacc_enable(DACC);
	dacc_write_conversion_data(DACC, 255);
}