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

boards/msbiot: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 15:34:00 +02:00
parent 0c026c84e3
commit 58fbd8b443

View File

@ -95,12 +95,12 @@ static const pwm_conf_t pwm_config[] = {
* PIN, device (ADCx), channel
* @{
*/
#define ADC_CONFIG { \
{GPIO_PIN(PORT_B, 0), 0, 8}, \
{GPIO_PIN(PORT_B, 1), 0, 9} \
}
static const adc_conf_t adc_config[] = {
{GPIO_PIN(PORT_B, 0), 0, 8},
{GPIO_PIN(PORT_B, 1), 0, 9}
};
#define ADC_NUMOF (2)
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
/**