zhyinch
2020-03-29 5f2e06850028e286bd95cfd003dd0682af267be3
源码/核心板/Src/application/global_param.h
@@ -12,7 +12,7 @@
#define    DEV_ID                        0x2      //璁惧鐨処d
#define    COM_INTERVAL               0x3      //閫氳闂撮殧
#define    MAX_REPORT_ANC_NUM      0x4      //鍗曟閫氳鍩虹珯涓婇檺
#define    MIN_REPORT_ANC_NUM      0x5      //鍗曟閫氳鍩虹珯涓嬮檺
#define    GROUP_ID                     0x5      //鍗曟閫氳鍩虹珯涓嬮檺
#define    DIST_OFFSET                  0x6   
#define    DEV_ROLE                     0x7      //璇ヨ澶囨槸anchor杩樻槸tag   
#define    ANC_POLL                     0x8      //鍩虹珯涓诲姩娴嬭窛
@@ -23,6 +23,19 @@
#define      ALARM_DISTANCE3         0xC      //灏忎簬澶氬皯璺濈鎶ヨ
#define      PAIR_ID                     0xD      //灏忎簬澶氬皯璺濈鎶ヨ
#define      HEARTBEAT             0xE
#define      MODBUS_MODE               0xF
#define      NEARBASE_NUM                    0x10
#define      NEARBASE_ID1                    0x11
#define      NEARBASE_ID2                    0x12
#define      NEARBASE_ID3                    0x13
#define      NEARBASE_ID4                    0x14
#define      NEARBASE_ID5                    0x15
#define      NEARBASE_ID6                    0x16
#define      NEARBASE_ID7                    0x17
#define      NEARBASE_ID8                    0x18
#define      NEARBASE_ID9                    0x19
#define      NEARBASE_ID10                   0x1a
#define    CNT_RESTART                  0x30
#define    CNT_REBOOT                  0x31
@@ -36,6 +49,6 @@
extern uint32_t save_com_map_to_flash(void);
extern void parameter_init(void);
extern u8 group_id;
#endif