diff --git a/boards/same54-xpro/Makefile.features b/boards/same54-xpro/Makefile.features index 91cb9db73b..3967e769d1 100644 --- a/boards/same54-xpro/Makefile.features +++ b/boards/same54-xpro/Makefile.features @@ -2,6 +2,7 @@ CPU = samd5x CPU_MODEL = same54p20a # Put defined MCU peripherals here (in alphabetical order) +FEATURES_PROVIDED += periph_dac FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index 5bcde6af1f..bb6ca0c3f0 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -242,6 +242,19 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { .gclk_src = SAM0_GCLK_48MHZ, } }; +/** @} */ + +/** + * @name DAC configuration + * @{ + */ + /* Must not exceed 12 MHz */ +#define DAC_CLOCK SAM0_GCLK_8MHZ + /* Use external reference voltage on PA03 */ + /* (You have to manually connect PA03 with Vcc) */ + /* Internal reference only gives 1V */ +#define DAC_VREF DAC_CTRLB_REFSEL_VREFPU +/** @} */ #ifdef __cplusplus }