From 4680a6339238d2c46b2e8bdc726af2df59a0c7f1 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期五, 23 八月 2024 16:20:41 +0800 Subject: [PATCH] 修复初始时候的gpio状态 --- Src/application/dw_app.h | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index f832c58..64e5a27 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -19,7 +19,7 @@ #define HEX_OUTPUT #define TOTAL_SLOTNUM 200 #define SLOTTIME_MS 48 -#define SLOT_SCALE 0.24 +#define SLOT_SCALE 0.55 #define MAX_NEARBASE_NUM 12 #define KEEP_TIMES 3 @@ -45,6 +45,14 @@ #define NEAR_RESPONSE 0x07 #define NEAR_FINAL 0x08 #define SPOLL 0x09 +#define DISCOVERPOLL 0x0A +#define DISCOVERRESPONSE 0x0B +#define DISCOVERFINAL 0x0C + +#define POS_MSG 0x15 +#define POS_POLL 0x16 +#define POS_RESPONSE 0x17 +#define POS_FINAL 0x18 #define REG_POLL 0x10 // #define REG_RESPONSE 0x11 // @@ -132,4 +140,5 @@ extern void TagDistClear(void); void Dw1000_App_Init(void); +void DelayOneSlot(void); #endif -- Gitblit v1.9.3