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

📄 mac_setup.h

📁 ucos在NEC平台下的移植
💻 H
字号:
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***                                                                                *
 *      ***   +                         CHIPCON CC2420 INTEGRATED 802.15.4 MAC AND PHY                 *
 *      ***   + +   ***                            MAC Parameter Setup File                            *
 *      ***   +++   ***                                                                                *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * CONFIDENTIAL                                                                                        *
 * The use of this file is restricted by the signed MAC software license agreement.                    *
 *                                                                                                     *
 * Copyright Chipcon AS, 2004                                                                          *
 *******************************************************************************************************
 * This file contains the MAC setup parameters which may be set differently for different applications *
 * or devices. These parameters can also be set in the make file.                                      *
 *******************************************************************************************************
 * Compiler: NEC Electronics PM plus V5.20                                                             *
 * Target platform: CC2420DB, CC2420 + 78K0/KF2                                                        *
 *******************************************************************************************************
 * The revision history is located at the bottom of this file                                          *
 *******************************************************************************************************/
#ifndef MAC_SETUP_H
#define MAC_SETUP_H


//-------------------------------------------------------------------------------------------------------
// Is the current device a FFD or RFD?
// Currently only FFD has been tested.
// Setting MAC_OPT_FFD to 0 will reduce code and RAM sizes
#ifndef MAC_OPT_FFD
    #define MAC_OPT_FFD 1///0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The maximum number of devices in the ACL
// If set to 0, ACL is not implemented.
// If MAC_OPT_SECURITY is set, MAC_OPT_ACL_SIZE must be >= 1
#ifndef MAC_OPT_ACL_SIZE
    #define MAC_OPT_ACL_SIZE 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// Is security implemented?
// 0 : No
// 1 : Yes
#ifndef MAC_OPT_SECURITY
    #define MAC_OPT_SECURITY 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// If security is implemented, are optional sequential freshness included?
#ifndef MAC_OPT_SEQUENTIAL_FRESHNESS
    #define MAC_OPT_SEQUENTIAL_FRESHNESS 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The maximum number of PAN descriptors returned from a passive or active scan. This memory space
// is set up by a layer above the MAC
#ifndef MAC_OPT_MAX_PAN_DESCRIPTORS
    #define MAC_OPT_MAX_PAN_DESCRIPTORS 4
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The number of packets in the RX pool (at least 1)
#ifndef MAC_OPT_RX_POOL_SIZE
    #define MAC_OPT_RX_POOL_SIZE 4
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The number of packets in the TX pool (at least 1, 2 when transmitting beacons)
#ifndef MAC_OPT_TX_POOL_SIZE
    #define MAC_OPT_TX_POOL_SIZE 2
#endif
//-------------------------------------------------------------------------------------------------------


#endif




/*******************************************************************************************************
 * Revision history:
 *
 * $Log: mac_setup.h,v $
 * Revision 1.3  2004/08/13 13:04:44  jol
 * CC2420 MAC Release v0.7
 *
 *
 *******************************************************************************************************/

⌨️ 快捷键说明

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