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

boards/olimexino-stm32: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 16:10:05 +02:00
parent d1a7ecb60e
commit 3e2e4c4150

View File

@ -58,16 +58,16 @@ extern "C" {
* @name ADC configuration
* @{
*/
#define ADC_CONFIG { \
{ GPIO_PIN(PORT_C, 0), 0, 10 }, \
{ GPIO_PIN(PORT_C, 1), 0, 11 }, \
{ GPIO_PIN(PORT_C, 2), 0, 12 }, \
{ GPIO_PIN(PORT_C, 3), 0, 13 }, \
{ GPIO_PIN(PORT_C, 4), 0, 14 }, \
{ GPIO_PIN(PORT_C, 5), 0, 15 } \
}
static const adc_conf_t adc_config[] = {
{ GPIO_PIN(PORT_C, 0), 0, 10 },
{ GPIO_PIN(PORT_C, 1), 0, 11 },
{ GPIO_PIN(PORT_C, 2), 0, 12 },
{ GPIO_PIN(PORT_C, 3), 0, 13 },
{ GPIO_PIN(PORT_C, 4), 0, 14 },
{ GPIO_PIN(PORT_C, 5), 0, 15 }
};
#define ADC_NUMOF (6)
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
/**