Skip to content

Commit

Permalink
boards/arm/stm32/nucleo-f4x1re/stm32_adc.c: remove dependency on AJOY…
Browse files Browse the repository at this point in the history
…STICK

remove dependency on AJOYSTICK, ADC can be used without analog joystick,
so there is no reason to depends on it
  • Loading branch information
raiden00pl authored and acassis committed Nov 18, 2024
1 parent f04b713 commit af5252c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
{
Expand All @@ -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] =
{
Expand All @@ -93,7 +92,6 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] =
};

#endif /* CONFIG_ADC_DMA */
#endif /* CONFIG_INPUT_AJOYSTICK */

/****************************************************************************
* Public Functions
Expand Down

0 comments on commit af5252c

Please sign in to comment.