From 0a6efd2610751b7ff10c3af6242c29cc108ff99f Mon Sep 17 00:00:00 2001 From: Richard Li Date: Fri, 20 Oct 2023 10:57:52 +0800 Subject: [PATCH] Added NV14/EL18 potentiometer gimbal support. --- radio/src/targets/nv14/hal.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/radio/src/targets/nv14/hal.h b/radio/src/targets/nv14/hal.h index 663370c6c78..4a53307e067 100644 --- a/radio/src/targets/nv14/hal.h +++ b/radio/src/targets/nv14/hal.h @@ -102,10 +102,10 @@ // ADC -#define ADC_GPIO_PIN_STICK_LH -#define ADC_GPIO_PIN_STICK_LV -#define ADC_GPIO_PIN_STICK_RV -#define ADC_GPIO_PIN_STICK_RH +#define ADC_GPIO_PIN_STICK_LH LL_GPIO_PIN_2 // PA.02 +#define ADC_GPIO_PIN_STICK_LV LL_GPIO_PIN_3 // PA.03 +#define ADC_GPIO_PIN_STICK_RV LL_GPIO_PIN_4 // PA.04 +#define ADC_GPIO_PIN_STICK_RH LL_GPIO_PIN_5 // PA.05 #define ADC_GPIO_PIN_POT1 LL_GPIO_PIN_6 // PA.06 VRA #define ADC_GPIO_PIN_POT2 LL_GPIO_PIN_4 // PC.04 VRB @@ -128,10 +128,10 @@ (ADC_GPIO_PIN_POT2 | ADC_GPIO_PIN_SWE | ADC_GPIO_PIN_SWF | ADC_GPIO_PIN_SWG | ADC_GPIO_PIN_BATT) #define ADC_GPIOF_PINS (ADC_GPIO_PIN_SWB | ADC_GPIO_PIN_SWD) -#define ADC_CHANNEL_STICK_LH -#define ADC_CHANNEL_STICK_LV -#define ADC_CHANNEL_STICK_RV -#define ADC_CHANNEL_STICK_RH +#define ADC_CHANNEL_STICK_LH LL_ADC_CHANNEL_2 // ADC123_IN2 -> ADC1_IN2 +#define ADC_CHANNEL_STICK_LV LL_ADC_CHANNEL_3 // ADC123_IN3 -> ADC1_IN3 +#define ADC_CHANNEL_STICK_RV LL_ADC_CHANNEL_4 // ADC12_IN4 -> ADC1_IN4 +#define ADC_CHANNEL_STICK_RH LL_ADC_CHANNEL_5 // ADC12_IN5 -> ADC1_IN5 #define ADC_CHANNEL_POT1 LL_ADC_CHANNEL_6 // ADC12_IN6 -> ADC1_IN6 #define ADC_CHANNEL_POT2 LL_ADC_CHANNEL_14 // ADC12_IN14 -> ADC1_IN14