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

📄 zigbee.def

📁 一个Zigbee开放协议栈移植到VC环境下的版本.
💻 DEF
字号:
//*********************************************************************
//*                                                                    
//* Software License Agreement                                         
//*                                                                    
//* The software supplied herewith by Microchip Technology Incorporated
//* (the 揅ompany? for its PICmicro?Microcontroller is intended and  
//* supplied to you, the Company抯 customer, for use solely and        
//* exclusively on Microchip PICmicro Microcontroller products. The    
//* software is owned by the Company and/or its supplier, and is       
//* protected under applicable copyright laws. All rights are reserved.
//* Any use in violation of the foregoing restrictions may subject the 
//* user to criminal sanctions under applicable laws, as well as to    
//* civil liability for the breach of the terms and conditions of this 
//* license.                                                           
//*                                                                    
//* THIS SOFTWARE IS PROVIDED IN AN 揂S IS?CONDITION. NO WARRANTIES,  
//* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED  
//* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A        
//* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,  
//* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR         
//* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.                  
//*                                                                    
//*********************************************************************

// Created by ZENA(TM) Version 1.3.0.0, 8/28/2006, 13:22:04

#ifndef _ZIGBEE_DEF
#define _ZIGBEE_DEF


#define __18F4620  //add by lq

// This definition has been created for use with a PIC18LF4620.
// If you change the target device, be sure to update the flash program
// memory erase and write block sizes and change the processor test to
// the new target processor.
#if defined(__18F4620)
    #define ERASE_BLOCK_SIZE (64ul)
    #define WRITE_BLOCK_SIZE (64ul)
#else
    #error Verify ERASE_BLOCK_SIZE and WRITE_BLOCK_SIZE for target PIC
#endif

#define MAC_LONG_ADDR_BYTE7 0x00
#define MAC_LONG_ADDR_BYTE6 0x04
#define MAC_LONG_ADDR_BYTE5 0xA3
#define MAC_LONG_ADDR_BYTE4 0x00
#define MAC_LONG_ADDR_BYTE3 0x00
#define MAC_LONG_ADDR_BYTE2 0x00
#define MAC_LONG_ADDR_BYTE1 0x00
#define MAC_LONG_ADDR_BYTE0 0x67
#define I_AM_END_DEVICE
#define I_AM_RFD
#define INCLUDE_ED_SCAN
#define INCLUDE_ACTIVE_SCAN
#define MY_CAPABILITY_INFO 0x80
#define RFD_POLL_RATE (ONE_SECOND * 0.5)
#define MAX_APL_FRAMES 4
#define MAX_APS_ACK_FRAMES 4
#define MAX_APS_ADDRESSES 0
#define NUM_BUFFERED_INDIRECT_MESSAGES 0
#define MAX_NEIGHBORS 5
#define NUM_BUFFERED_BROADCAST_MESSAGES 0
#define NUM_BUFFERED_ROUTING_MESSAGES 0
#define MINIMUM_JOIN_LQI 48
#define RX_BUFFER_SIZE 256
#define RX_BUFFER_LOCATION 0xa00
#define MAC_PIB_macBeaconOrder 15
#define MAC_PIB_macSuperframeOrder 15
#define MAC_PIB_macBattLifeExt FALSE
#define RF_CHIP MRF24J40
#define MAC_PIB_macAckWaitDuration (54+3)
#define PHY_CS LATC0
#define PHY_CS_TRIS TRISC0
#define PHY_RESETn LATC2
#define PHY_RESETn_TRIS TRISC2
#define PHY_WAKE LATC1
#define PHY_WAKE_TRIS TRISC1
#define PA_LEVEL 0x00  // -0.00 dBm
#define FREQUENCY_BAND FB_2400GHz
#define ALLOWED_CHANNELS 0x00001000
#define CLOCK_FREQ 16000000
#define BAUD_RATE 19200
#define HEAP_LOCATION 0x0100
#define MAX_HEAP_SIZE 2048
#define NUM_USER_ENDPOINTS 1
#define EP_LIGHT 8
#define MY_MAX_INPUT_CLUSTERS 1
#define MY_MAX_OUTPUT_CLUSTERS 1
#include "C:\MpZBee\ZigBeeStack\zHCLighting.h"
#endif

⌨️ 快捷键说明

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