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

boards/nucleo-f207zg: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 15:48:33 +02:00
parent 0b36699d31
commit 2179e38fa8

View File

@ -223,11 +223,12 @@ static const spi_conf_t spi_config[] = {
* PIN, device (ADCx), channel
* @{
*/
#define ADC_CONFIG { \
{GPIO_PIN(PORT_A, 3), 0, 3}, \
{GPIO_PIN(PORT_C, 0), 1, 0} \
}
#define ADC_NUMOF (2)
static const adc_conf_t adc_config[] = {
{GPIO_PIN(PORT_A, 3), 0, 3},
{GPIO_PIN(PORT_C, 0), 1, 0}
};
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
/**