From 59a4e01d92da432e9736b24c085089cd31963833 Mon Sep 17 00:00:00 2001 From: zhangbo <zhangbo@qq.com> Date: 星期三, 21 五月 2025 15:19:22 +0800 Subject: [PATCH] 修改了串口读取的bug,现在是通过飞线控制的 PCA蓝牙IRQ拉低,修改灯的闪灯逻辑, --- keil/include/drivers/global_param.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/keil/include/drivers/global_param.h b/keil/include/drivers/global_param.h index 6638833..96a87f6 100644 --- a/keil/include/drivers/global_param.h +++ b/keil/include/drivers/global_param.h @@ -1,6 +1,9 @@ #ifndef __GLOBAL_PARAM_H__ #define __GLOBAL_PARAM_H__ +//#define GET_IMUINT HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0) +#define GET_USERKEY read_userkey_input_pca() +#define STATIONARY_TIME 3 //#include "main.h" #include "stdint.h" #define COM_MAP_SIZE 512 //MAP表的最大空间 @@ -16,6 +19,7 @@ #define MAX_REPORT_ANC_NUM 0x4 //单次通讯基站上限 #define GROUP_ID 0x5 //单次通讯基站下限 #define DIST_OFFSET 0x6 +#define LORA_POWER 0x6 #define DEV_ROLE 0x7 //该设备是anchor还是tag #define ANC_POLL 0x8 //基站主动测距 @@ -51,6 +55,9 @@ #define NEARBASE_ID9 0x19 #define NEARBASE_ID10 0x1a +#define UWB_RNAGE_TIME 0xA +#define UWB_WAIT_TIME 0xB + #define POWER 0x1B #define IMU_THRES 0x1C #define NOMOVESLEEP_TIME 0x1D -- Gitblit v1.9.3