⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h

📁 ATmega128L+CC2420的单片机源程序
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -