mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-18 02:53:52 +01:00
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.
This commit is contained in:
parent
d86b75a4a6
commit
22cdbdeaa3
@ -377,10 +377,10 @@ static const adc_conf_chan_t adc_channels[] = {
|
|||||||
*/
|
*/
|
||||||
/* Must not exceed 12 MHz */
|
/* Must not exceed 12 MHz */
|
||||||
#define DAC_CLOCK SAM0_GCLK_TIMER
|
#define DAC_CLOCK SAM0_GCLK_TIMER
|
||||||
/* Use external reference voltage on PA03 */
|
#ifndef DAC_VREF
|
||||||
/* (You have to manually connect PA03 with Vcc) */
|
|
||||||
/* Internal reference only gives 1V */
|
/* Internal reference only gives 1V */
|
||||||
#define DAC_VREF DAC_CTRLB_REFSEL_VREFPU
|
#define DAC_VREF DAC_CTRLB_REFSEL_INTREF
|
||||||
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user