From 2433d60e39c780e1cd139bc791f7b7ecf083f152 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Mon, 16 Oct 2023 13:37:57 +0800 Subject: [PATCH] Fixed PL18 int MPM problem after PR #3822 and #4198. --- radio/src/targets/pl18/hal.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/radio/src/targets/pl18/hal.h b/radio/src/targets/pl18/hal.h index 3c8dcbee05d..251d61b2805 100644 --- a/radio/src/targets/pl18/hal.h +++ b/radio/src/targets/pl18/hal.h @@ -192,8 +192,8 @@ #define ADC_GPIO_PIN_POT3 LL_GPIO_PIN_8 // PF.08 VRC #define ADC_GPIO_PIN_SLIDER1 LL_GPIO_PIN_9 // PF.09 VRD/LS #define ADC_GPIO_PIN_SLIDER2 LL_GPIO_PIN_7 // PA.07 VRE/RS -#define ADC_GPIO_PIN_EXT1 LL_GPIO_PIN_2 // PA.02 -#define ADC_GPIO_PIN_EXT2 LL_GPIO_PIN_6 // PF.06 +//#define ADC_GPIO_PIN_EXT1 LL_GPIO_PIN_2 // PA.02 +//#define ADC_GPIO_PIN_EXT2 LL_GPIO_PIN_6 // PF.06 #define ADC_GPIO_PIN_SWB LL_GPIO_PIN_1 // PC.01 #define ADC_GPIO_PIN_SWD LL_GPIO_PIN_0 // PC.00 @@ -519,23 +519,21 @@ #define FLYSKY_HALL_DMA_Stream_TX LL_DMA_STREAM_4 // Internal Module -#define INTMODULE_RCC_AHB1Periph (RCC_AHB1Periph_GPIOF | RCC_AHB1Periph_GPIOH | RCC_AHB1Periph_DMA1) +#define INTMODULE_RCC_AHB1Periph (RCC_AHB1Periph_GPIOF | RCC_AHB1Periph_GPIOI | RCC_AHB1Periph_DMA1) #define INTMODULE_PWR_GPIO GPIOI #define INTMODULE_PWR_GPIO_PIN GPIO_Pin_0 // PI.00 #define INTMODULE_GPIO GPIOF #define INTMODULE_TX_GPIO_PIN LL_GPIO_PIN_7 // PF.07 #define INTMODULE_RX_GPIO_PIN LL_GPIO_PIN_6 // PF.06 #define INTMODULE_USART UART7 -#define INTMODULE_GPIO_AF GPIO_AF_UART7 -#define INTMODULE_GPIO_AF_LL LL_GPIO_AF_8 +#define INTMODULE_GPIO_AF LL_GPIO_AF_8 #define INTMODULE_USART_IRQn UART7_IRQn #define INTMODULE_USART_IRQHandler UART7_IRQHandler #define INTMODULE_DMA DMA1 #define INTMODULE_DMA_STREAM LL_DMA_STREAM_1 #define INTMODULE_DMA_STREAM_IRQ DMA1_Stream1_IRQn -#define INTMODULE_DMA_FLAG_TC DMA_IT_TCIF1 +#define INTMODULE_DMA_FLAG_TC DMA_FLAG_TCIF1 #define INTMODULE_DMA_CHANNEL LL_DMA_CHANNEL_5 - #define INTMODULE_RX_DMA DMA1 #define INTMODULE_RX_DMA_STREAM LL_DMA_STREAM_3 #define INTMODULE_RX_DMA_CHANNEL LL_DMA_CHANNEL_5