From 22cdbdeaa3d7718be3ea0bdebc0ac95f61f82679 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 10 Jun 2025 19:35:11 +0200 Subject: [PATCH] boards/same54-xpro: default to internal voltage reference for DAC Using the external reference produces no output when no voltage is connected, which makes for a confusing non-functional DAC on the eval board. --- boards/same54-xpro/include/periph_conf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index bde054d943..89e4d36367 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -377,10 +377,10 @@ static const adc_conf_chan_t adc_channels[] = { */ /* Must not exceed 12 MHz */ #define DAC_CLOCK SAM0_GCLK_TIMER - /* Use external reference voltage on PA03 */ - /* (You have to manually connect PA03 with Vcc) */ +#ifndef DAC_VREF /* Internal reference only gives 1V */ -#define DAC_VREF DAC_CTRLB_REFSEL_VREFPU +#define DAC_VREF DAC_CTRLB_REFSEL_INTREF +#endif /** @} */ /**