config.h

来自「ATmega128L+CC2420的单片机源程序」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef CONFIG_H_
#define CONFIG_H_



#define CHANNEL             11
#define PANID               0x2420
#define COORDINATOR_ADDR    0x1234

// 下面两个要设置成一样大
#define MAX_ADDRTABLE       20      // 地址分配表的大小
#define MAX_NEIGHBORTABLE   20      // 邻居表大小

#define COORDINATOR         0x01
#define ROUTER              0x02
#define ENDPOINT            0x03
 
//#define I_Am_What           COORDINATOR
//#define I_Am_What           ROUTER
#define I_Am_What           ENDPOINT


#define JION_TO_NETWORK_PASSWORD    0x11

#define IEEEADDR0    0x55
#define IEEEADDR1    0x01
#define IEEEADDR2    0x55
#define IEEEADDR3    0x02
#define IEEEADDR4    0x55
#define IEEEADDR5    0x03
#define IEEEADDR6    0x55
#define IEEEADDR7    0x14     // COORDINATOR 为0x04  ; ENDPOINT 为0x14

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?