From bee670865494cd5dc6086495bf10a7d5496b2864 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期四, 12 六月 2025 10:23:08 +0800
Subject: [PATCH] 加入休眠引脚判断版本,isp脚换成别的脚,代码未修改对应引脚

---
 user_config.h |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/user_config.h b/user_config.h
index a47e1ef..9ca9821 100644
--- a/user_config.h
+++ b/user_config.h
@@ -289,7 +289,7 @@
 
 /** TX power level: 0 ~ 60 */
 #define TX_POWER_LEVEL (36)
-
+#define RANGING_CORR (0)
 /** Antenna ports combination, @ref macro definition RX_xPORTS_ANT_xxx */
 #define RX_ANT_PORTS_COMBINATION (RX_4PORTS_ANT_3_0_1_2)
 
@@ -305,7 +305,7 @@
 /// Antenna pattern
 #define ANT_PATTERN (ANT_PATTERN_LINEAR)
 #endif
-
+//#define MY_MODE
 /** Enable load cap automatic tuning during ranging procedure */
 #define XTAL_AUTO_TUNE_EN (1)
 
@@ -315,6 +315,7 @@
 /** Velocity of propagation (%) */
 #define VP_VAL (100)
 
+#define DW1000
 /* ==========================================         Timing configuration            ======================================== */
 
 /// Period prefetch time for event program from wakeup - 400us+
@@ -325,8 +326,18 @@
 #define UWB_RX_OPEN_IN_ADVANCE (US_TO_PHY_TIMER_COUNT(10))
 /// RX window - 750us
 #define UWB_RX_WINDOW (US_TO_PHY_TIMER_COUNT(750))
-#define LED_PIN  IO_PIN_4
+//#define LED_PIN  IO_PIN_4
 #define INPUT_5V_Pin  IO_PIN_11
+#define MODE_CHANGE_PIN IO_PIN_0
+#define LORA_CS IO_PIN_8
+#define LORA_MOSI IO_PIN_11
+#define LORA_MISO IO_PIN_12
+#define LORA_CLK IO_PIN_13
+#define LORA_IRQ IO_PIN_7
+#define LORA_BUSY IO_PIN_2
+#define LORA_NRST IO_PIN_4
+#define SOS_PIN  IO_PIN_4  //这个未定义
+#define SLEEP_PIN IO_PIN_3
 /* =========================================================================================================================== */
 /* ================                                           End                                             ================ */
 /* =========================================================================================================================== */

--
Gitblit v1.9.3