From 7c5abdbc2bcc04ab377661174cb3b002e26c83f6 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期四, 31 七月 2025 16:41:35 +0800
Subject: [PATCH] 变为2HZ测距

---
 pin_config.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/pin_config.c b/pin_config.c
index 142d3b6..d024b21 100644
--- a/pin_config.c
+++ b/pin_config.c
@@ -47,15 +47,19 @@
     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);
 	
-	
+gpio_pin_set_dir(IO_PIN_7,GPIO_DIR_OUT,1);//打开fem
+//	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