This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new af5252c8f9 boards/arm/stm32/nucleo-f4x1re/stm32_adc.c: remove
dependency on AJOYSTICK
af5252c8f9 is described below
commit af5252c8f9f597b4fdf1c6d50ce6804c9a919723
Author: raiden00pl <[email protected]>
AuthorDate: Mon Nov 18 19:15:47 2024 +0100
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 b51229b36f..e693f7621c 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