mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #17214 from luisan00/stm32f469i-disco
boards/stm32f469i-disco: Add DAC
This commit is contained in:
commit
bc1e826c01
@ -8,6 +8,7 @@ config BOARD_STM32F469I_DISCO
|
|||||||
|
|
||||||
# MCU peripherals (in alphabetical order)
|
# MCU peripherals (in alphabetical order)
|
||||||
select HAS_PERIPH_ADC
|
select HAS_PERIPH_ADC
|
||||||
|
select HAS_PERIPH_DAC
|
||||||
select HAS_PERIPH_DMA
|
select HAS_PERIPH_DMA
|
||||||
select HAS_PERIPH_I2C
|
select HAS_PERIPH_I2C
|
||||||
select HAS_PERIPH_PWM
|
select HAS_PERIPH_PWM
|
||||||
|
@ -3,6 +3,7 @@ CPU_MODEL = stm32f469ni
|
|||||||
|
|
||||||
# MCU peripherals (in alphabetical order)
|
# MCU peripherals (in alphabetical order)
|
||||||
FEATURES_PROVIDED += periph_adc
|
FEATURES_PROVIDED += periph_adc
|
||||||
|
FEATURES_PROVIDED += periph_dac
|
||||||
FEATURES_PROVIDED += periph_dma
|
FEATURES_PROVIDED += periph_dma
|
||||||
FEATURES_PROVIDED += periph_i2c
|
FEATURES_PROVIDED += periph_i2c
|
||||||
FEATURES_PROVIDED += periph_rtc
|
FEATURES_PROVIDED += periph_rtc
|
||||||
|
@ -241,6 +241,23 @@ static const adc_conf_t adc_config[] = {
|
|||||||
#define ADC_NUMOF ARRAY_SIZE(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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user