1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17214 from luisan00/stm32f469i-disco

boards/stm32f469i-disco: Add DAC
This commit is contained in:
Alexandre Abadie 2021-11-19 14:55:41 +01:00 committed by GitHub
commit bc1e826c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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