From da80b96a9d0f2f9dc6e23d1a1830cc2384f2bd0b Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期五, 01 八月 2025 13:45:57 +0800 Subject: [PATCH] 加入升级代码,但是空间不够 先提交一下 改为分成两个app 由boot来进行跳转 --- user_config.h | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/user_config.h b/user_config.h index a47e1ef..48adfc1 100644 --- a/user_config.h +++ b/user_config.h @@ -54,7 +54,7 @@ /** CPU model */ #define CPU_MK8000 - +//#define XIP_EN /* =========================================================================================================================== */ /* ================ Board configuration ================ */ /* =========================================================================================================================== */ @@ -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_17 /* =========================================================================================================================== */ /* ================ End ================ */ /* =========================================================================================================================== */ -- Gitblit v1.9.3