From af5252c8f9f597b4fdf1c6d50ce6804c9a919723 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 18 Nov 2024 19:15:47 +0100 Subject: [PATCH] boards/arm/stm32/nucleo-f4x1re/stm32_adc.c: remove dependency on AJOYSTICK remove dependency on AJOYSTICK, ADC can be used without analog joystick, so there is no reason to depends on it --- boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c index b51229b36f918..e693f7621c6a6 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c @@ -59,9 +59,8 @@ /* Identifying number of each ADC channel. */ -#ifdef CONFIG_INPUT_AJOYSTICK #ifdef CONFIG_ADC_DMA -/* The Itead analog joystick gets inputs on ADC_IN0 and ADC_IN1 */ +/* Configure ADC inputs on ADC_IN0 and ADC_IN1 */ static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = { @@ -78,7 +77,7 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] = #else /* Without DMA, only a single channel can be supported */ -/* The Itead analog joystick gets input on ADC_IN0 */ +/* Configura ADC input on ADC_IN0 */ static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = { @@ -93,7 +92,6 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] = }; #endif /* CONFIG_ADC_DMA */ -#endif /* CONFIG_INPUT_AJOYSTICK */ /**************************************************************************** * Public Functions