boards/nucleo-l031k6: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
daecd9c607
commit
fcec19a446
@ -102,16 +102,17 @@ static const spi_conf_t spi_config[] = {
|
|||||||
* @name ADC configuration
|
* @name ADC configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ADC_CONFIG { \
|
static const adc_conf_t adc_config[] = {
|
||||||
{ GPIO_PIN(PORT_A, 0), 0 }, /* Pin A0 */ \
|
{ GPIO_PIN(PORT_A, 0), 0 }, /* Pin A0 */
|
||||||
{ GPIO_PIN(PORT_A, 1), 1 }, /* Pin A1 */ \
|
{ GPIO_PIN(PORT_A, 1), 1 }, /* Pin A1 */
|
||||||
{ GPIO_PIN(PORT_A, 3), 3 }, /* Pin A2 */ \
|
{ GPIO_PIN(PORT_A, 3), 3 }, /* Pin A2 */
|
||||||
{ GPIO_PIN(PORT_A, 4), 4 }, /* Pin A3 */ \
|
{ GPIO_PIN(PORT_A, 4), 4 }, /* Pin A3 */
|
||||||
{ GPIO_PIN(PORT_A, 5), 5 }, /* Pin A4 */ \
|
{ GPIO_PIN(PORT_A, 5), 5 }, /* Pin A4 */
|
||||||
{ GPIO_PIN(PORT_A, 6), 6 }, /* Pin A5 */ \
|
{ GPIO_PIN(PORT_A, 6), 6 }, /* Pin A5 */
|
||||||
{ GPIO_PIN(PORT_A, 7), 7 }, /* Pin A6 */ \
|
{ GPIO_PIN(PORT_A, 7), 7 }, /* Pin A6 */
|
||||||
}
|
};
|
||||||
#define ADC_NUMOF (7U)
|
|
||||||
|
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user