mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/stm32f469i-disco: Add DAC
This commit is contained in:
parent
5e925e1906
commit
ea2e1393b8
@ -8,6 +8,7 @@ config BOARD_STM32F469I_DISCO
|
||||
|
||||
# MCU peripherals (in alphabetical order)
|
||||
select HAS_PERIPH_ADC
|
||||
select HAS_PERIPH_DAC
|
||||
select HAS_PERIPH_DMA
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_PWM
|
||||
|
@ -3,6 +3,7 @@ CPU_MODEL = stm32f469ni
|
||||
|
||||
# MCU peripherals (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_adc
|
||||
FEATURES_PROVIDED += periph_dac
|
||||
FEATURES_PROVIDED += periph_dma
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
|
@ -241,6 +241,23 @@ static const adc_conf_t adc_config[] = {
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief DAC configuration
|
||||
* @{
|
||||
*/
|
||||
static const dac_conf_t dac_config[] = {
|
||||
{GPIO_PIN(PORT_A, 4), .chan = 0},
|
||||
{GPIO_PIN(PORT_A, 5), .chan = 1},
|
||||
};
|
||||
/** @}*/
|
||||
|
||||
/**
|
||||
* @brief Number of DACs
|
||||
* @{
|
||||
*/
|
||||
#define DAC_NUMOF ARRAY_SIZE(dac_config)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user