From 2d43068c500d6420b0864eebfcfcdd0943c5738c Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期三, 02 四月 2025 18:08:01 +0800
Subject: [PATCH] 修改PA驱动代码,成功驱动pa并且修复串口读取bug

---
 pin_config.c |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/pin_config.c b/pin_config.c
index 142d3b6..8f9e200 100644
--- a/pin_config.c
+++ b/pin_config.c
@@ -47,15 +47,18 @@
     io_pin_mux_set(IO_PIN_5, IO_FUNC4);
     io_pin_mux_set(IO_PIN_6, IO_FUNC4);
 		
-	
-	
+	io_pin_mux_set(IO_PIN_9, IO_FUNC6);
+	io_pin_mux_set(IO_PIN_10, IO_FUNC6);
+
+//	io_pull_set(IO_PIN_9 , IO_PULL_DOWN, IO_PULL_UP_LEVEL3);
+//	io_pull_set(IO_PIN_10 , IO_PULL_DOWN, IO_PULL_UP_LEVEL3);
 			//io_pin_mux_set(IO_PIN_6, IO_FUNC4);
 
-   // UART1 RX/TX已修改复用引脚为ADC留出空间
-    io_pin_mux_set(IO_PIN_10, IO_FUNC4);
-    io_pin_mux_set(IO_PIN_9, IO_FUNC4);
-	
-	// Single ADC, If IO0 is set to negative input, the positive input is Vref, and vice versa
-    io_pin_mux_set(IO_PIN_0, IO_FUNC1);
-    io_pull_set(IO_PIN_0, IO_HIGH_Z, IO_PULL_UP_NONE);
+//   // UART1 RX/TX已修改复用引脚为ADC留出空间
+//    io_pin_mux_set(IO_PIN_10, IO_FUNC4);
+//    io_pin_mux_set(IO_PIN_9, IO_FUNC4);
+//	
+//	// Single ADC, If IO0 is set to negative input, the positive input is Vref, and vice versa
+//    io_pin_mux_set(IO_PIN_0, IO_FUNC1);
+//    io_pull_set(IO_PIN_0, IO_HIGH_Z, IO_PULL_UP_NONE);
 }

--
Gitblit v1.9.3