mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nucleo-f429zi: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
213c0c0d34
commit
a555578c28
@ -169,15 +169,16 @@ static const spi_conf_t spi_config[] = {
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
#define ADC_NUMOF (6U)
|
||||
#define ADC_CONFIG { \
|
||||
{GPIO_PIN(PORT_A, 3), 2, 3}, \
|
||||
{GPIO_PIN(PORT_C, 0), 2, 10}, \
|
||||
{GPIO_PIN(PORT_C, 3), 2, 13}, \
|
||||
{GPIO_PIN(PORT_F, 3), 2, 9}, \
|
||||
{GPIO_PIN(PORT_F, 5), 2, 15}, \
|
||||
{GPIO_PIN(PORT_F, 10), 2, 8}, \
|
||||
}
|
||||
static const adc_conf_t adc_config[] = {
|
||||
{GPIO_PIN(PORT_A, 3), 2, 3},
|
||||
{GPIO_PIN(PORT_C, 0), 2, 10},
|
||||
{GPIO_PIN(PORT_C, 3), 2, 13},
|
||||
{GPIO_PIN(PORT_F, 3), 2, 9},
|
||||
{GPIO_PIN(PORT_F, 5), 2, 15},
|
||||
{GPIO_PIN(PORT_F, 10), 2, 8},
|
||||
};
|
||||
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user