94 lines
2.5 KiB
C
94 lines
2.5 KiB
C
|
/********************************************************************************************************
|
||
|
* @file stack_cfg.h
|
||
|
*
|
||
|
* @brief This is the header file for stack_cfg
|
||
|
*
|
||
|
* @author Zigbee Group
|
||
|
* @date 2021
|
||
|
*
|
||
|
* @par Copyright (c) 2021, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*******************************************************************************************************/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @brief Working channel
|
||
|
* Valid value: 11 ~ 26
|
||
|
*/
|
||
|
#define DEFAULT_CHANNEL 20
|
||
|
|
||
|
/**
|
||
|
* @brief NVRAM
|
||
|
*/
|
||
|
#define NV_ENABLE 1
|
||
|
|
||
|
/**
|
||
|
* @brief Security
|
||
|
*/
|
||
|
#define SECURITY_ENABLE 1
|
||
|
|
||
|
|
||
|
/**********************************************************************
|
||
|
* Following parameter need user to adjust according the app requirement
|
||
|
*/
|
||
|
/**
|
||
|
* @brief ZCL: MAX number of cluster list, in cluster number add + out cluster number
|
||
|
*
|
||
|
*/
|
||
|
#define ZCL_CLUSTER_NUM_MAX 11
|
||
|
|
||
|
/**
|
||
|
* @brief ZCL: maximum number for zcl reporting table
|
||
|
*
|
||
|
*/
|
||
|
#define ZCL_REPORTING_TABLE_NUM 4
|
||
|
|
||
|
/**
|
||
|
* @brief ZCL: maximum number for zcl scene table
|
||
|
*
|
||
|
*/
|
||
|
#define ZCL_SCENE_TABLE_NUM 8
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @brief APS: MAX number of groups size in the group table
|
||
|
* In each group entry, there is 8 endpoints existed.
|
||
|
*/
|
||
|
#define APS_GROUP_TABLE_NUM 8
|
||
|
|
||
|
/**
|
||
|
* @brief APS: MAX number of binding table size
|
||
|
*/
|
||
|
#define APS_BINDING_TABLE_NUM 8
|
||
|
|
||
|
|
||
|
/**********************************************************************
|
||
|
* Following configuration will calculated automatically
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
Auto definition for the role
|
||
|
*/
|
||
|
#if (COORDINATOR)
|
||
|
#define ZB_ROUTER_ROLE 1
|
||
|
#define ZB_COORDINATOR_ROLE 1
|
||
|
#elif (ROUTER)
|
||
|
#define ZB_ROUTER_ROLE 1
|
||
|
#elif (END_DEVICE)
|
||
|
#define ZB_ED_ROLE 1
|
||
|
#endif
|
||
|
|