boards/nucleo-f091rc: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
1e51da6b59
commit
0b36699d31
@ -208,16 +208,16 @@ static const pwm_conf_t pwm_config[] = {
|
|||||||
* @name ADC configuration
|
* @name ADC configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ADC_CONFIG { \
|
static const adc_conf_t adc_config[] = {
|
||||||
{ GPIO_PIN(PORT_A, 0), 0 },\
|
{ GPIO_PIN(PORT_A, 0), 0 },
|
||||||
{ GPIO_PIN(PORT_A, 1), 1 },\
|
{ GPIO_PIN(PORT_A, 1), 1 },
|
||||||
{ GPIO_PIN(PORT_A, 4), 4 },\
|
{ GPIO_PIN(PORT_A, 4), 4 },
|
||||||
{ GPIO_PIN(PORT_B, 0), 8 },\
|
{ GPIO_PIN(PORT_B, 0), 8 },
|
||||||
{ GPIO_PIN(PORT_C, 1), 11 },\
|
{ GPIO_PIN(PORT_C, 1), 11 },
|
||||||
{ GPIO_PIN(PORT_C, 0), 10 } \
|
{ GPIO_PIN(PORT_C, 0), 10 }
|
||||||
}
|
};
|
||||||
|
|
||||||
#define ADC_NUMOF (6)
|
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user