mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/sltb009a: enable DAC support
This commit is contained in:
parent
e934d5220a
commit
e04e8ee128
@ -13,6 +13,7 @@ config BOARD_SLTB009A
|
||||
select BOARD_COMMON_SILABS
|
||||
select CPU_MODEL_EFM32GG12B810F1024GM64
|
||||
select HAS_PERIPH_ADC
|
||||
select HAS_PERIPH_DAC
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_RTC
|
||||
select HAS_PERIPH_RTT
|
||||
|
@ -4,6 +4,7 @@ CPU_MODEL = efm32gg12b810f1024gm64
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_adc
|
||||
FEATURES_PROVIDED += periph_dac
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_rtt
|
||||
|
@ -80,6 +80,29 @@ static const adc_chan_conf_t adc_channel_config[] = {
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name DAC configuration
|
||||
* @{
|
||||
*/
|
||||
static const dac_conf_t dac_config[] = {
|
||||
{
|
||||
.dev = VDAC0,
|
||||
.ref = vdacRefAvdd,
|
||||
.cmu = cmuClock_VDAC0,
|
||||
},
|
||||
};
|
||||
|
||||
static const dac_chan_conf_t dac_channel_config[] = {
|
||||
{
|
||||
.dev = 0,
|
||||
.index = 0,
|
||||
},
|
||||
};
|
||||
|
||||
#define DAC_DEV_NUMOF ARRAY_SIZE(dac_config)
|
||||
#define DAC_NUMOF ARRAY_SIZE(dac_channel_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name I2C configuration
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user