#ifndef _CONFIGURATION_H_
#define _CONFIGURATION_H_  

#include <BoardConfig.h>
#include "parameters.h"

//*****************************

#define  CS_APS_MAX_FRAME_RETRIES 1
#define  CS_ZDO_JOIN_ATTEMPTS 200
#define  CS_NWK_UNIQUE_ADDR true



//#define CS_PREDEFINED_PANID true
//#define CS_NWK_PANID 0x1111
#define CS_CHANNEL_PAGE     0  



// volitelne parametry
#define CS_ZDO_JOIN_INTERVAL    1000

#ifdef STANDARD_SECURITY_MODE
  // pouziti bezpecnostniho klice.
  #define CS_ZDO_SECURITY_STATUS 0
  //#define CS_ZDO_SECURITY_STATUS 3
  
  // Depending on security key type and security mode this is either network key,
  // master key, link key or initial link key.
  #define CS_NETWORK_KEY {0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC}
  
  // Address of device responsible for authentication and key distribution (Trust
  // Center).
  #define CS_APS_TRUST_CENTER_ADDRESS 0xAAAAAAAAAAAAAAAALL
  
  // Security information waiting timeout before secure network join considered
  // failed.
  #define CS_APS_SECURITY_TIMEOUT_PERIOD 10000
  
  #define CS_APS_SECURITY_BUFFERS_AMOUNT 4
#endif

// parameters below cannot be changed in runtime
#define CS_NEIB_TABLE_SIZE   8 
#define CS_MAX_CHILDREN_AMOUNT  7
#define CS_MAX_CHILDREN_ROUTER_AMOUNT  7
#define CS_MAX_NETWORK_DEPTH	5
 

#endif // _CONFIGURATION_H_
