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

boards/stm32f4discovery: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 16:14:22 +02:00
parent 477e910066
commit 110c9bb8c1

View File

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