From e085232da48e9ffb702e7666c80c2ab09378d550 Mon Sep 17 00:00:00 2001 From: iosabi Date: Sat, 30 Jan 2021 23:30:43 +0000 Subject: [PATCH] cpu/qn908x: Fix BOARD_HAS_ADC_PA06_CAP usage. The macro was moved from Kconfig to the periph_cpu.h which means that the macro name needed to be updated to BOARD_HAS_ADC_PA06_CAP instead of CONFIG_BOARD_HAS_ADC_PA06_CAP. --- cpu/qn908x/periph/adc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/qn908x/periph/adc.c b/cpu/qn908x/periph/adc.c index afc38170a7..1308d67b93 100644 --- a/cpu/qn908x/periph/adc.c +++ b/cpu/qn908x/periph/adc.c @@ -159,15 +159,15 @@ int adc_init(adc_t line) ADC_CTRL_CH_IDX_EN(0) | ADC_CTRL_DATA_FORMAT(1) | /* DATA is sign extended. */ ADC_CTRL_SIG_INV_EN(0) | -#ifdef CONFIG_BOARD_HAS_ADC_PA06_CAP +#ifdef BOARD_HAS_ADC_PA06_CAP ADC_CTRL_VREFO_EN(1) | -#endif /* CONFIG_BOARD_HAS_ADC_PA06_CAP */ +#endif /* BOARD_HAS_ADC_PA06_CAP */ ADC_CTRL_TRIGGER(35 /* software trigger */); -#ifdef CONFIG_BOARD_HAS_ADC_PA06_CAP +#ifdef BOARD_HAS_ADC_PA06_CAP /* Use PA06 as the ADC_EX_CAP signal. */ gpio_init_mux(GPIO_PIN(PORT_A, 6), 1); -#endif /* CONFIG_BOARD_HAS_ADC_PA06_CAP */ +#endif /* BOARD_HAS_ADC_PA06_CAP */ /* Always use CFG[0] to sample all channels. */ ADC->CH_CFG = 0u;