mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
boards/stm32f030f4-demo: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
3e2e4c4150
commit
80990e7c96
@ -152,16 +152,16 @@ static const spi_conf_t spi_config[] = {
|
||||
* @name ADC configuration
|
||||
* @{
|
||||
*/
|
||||
#define ADC_CONFIG { \
|
||||
{ GPIO_PIN(PORT_A, 0), 0 }, \
|
||||
{ GPIO_PIN(PORT_A, 1), 1 }, \
|
||||
{ GPIO_PIN(PORT_A, 2), 2 }, \
|
||||
{ GPIO_PIN(PORT_A, 3), 3 }, \
|
||||
{ GPIO_PIN(PORT_A, 4), 4 },\
|
||||
{ GPIO_PIN(PORT_A, 5), 5 } \
|
||||
}
|
||||
static const adc_conf_t adc_config[] = {
|
||||
{ GPIO_PIN(PORT_A, 0), 0 },
|
||||
{ GPIO_PIN(PORT_A, 1), 1 },
|
||||
{ GPIO_PIN(PORT_A, 2), 2 },
|
||||
{ GPIO_PIN(PORT_A, 3), 3 },
|
||||
{ GPIO_PIN(PORT_A, 4), 4 },
|
||||
{ GPIO_PIN(PORT_A, 5), 5 }
|
||||
};
|
||||
|
||||
#define ADC_NUMOF (6)
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user