diff --git a/boards/samd21-xpro/Makefile.features b/boards/samd21-xpro/Makefile.features index 27a8b83bb7..e24a5fcae4 100644 --- a/boards/samd21-xpro/Makefile.features +++ b/boards/samd21-xpro/Makefile.features @@ -3,6 +3,7 @@ CPU_MODEL = samd21j18a # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc +FEATURES_PROVIDED += periph_dac FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_rtc diff --git a/boards/samd21-xpro/include/periph_conf.h b/boards/samd21-xpro/include/periph_conf.h index 33e30efa36..5db595e851 100644 --- a/boards/samd21-xpro/include/periph_conf.h +++ b/boards/samd21-xpro/include/periph_conf.h @@ -347,6 +347,15 @@ static const adc_conf_chan_t adc_channels[] = { #define ADC_NUMOF ARRAY_SIZE(adc_channels) /** @} */ +/** + * @name DAC configuration + * @{ + */ +#define DAC_CLOCK SAM0_GCLK_1MHZ + /* use Vcc as reference voltage */ +#define DAC_VREF DAC_CTRLB_REFSEL_AVCC +/** @} */ + #ifdef __cplusplus } #endif