configuratio configurationn

Download Configuratio configurationn

If you can't read please download the document

Upload: sun-java

Post on 16-Sep-2015

212 views

Category:

Documents


0 download

DESCRIPTION

configuration

TRANSCRIPT

#ifndef _CONFIGURATION_H_#define _CONFIGURATION_H_//-----------------------------------------------// Disables board-specific peripherals support//-----------------------------------------------#define APP_DISABLE_BSP 1//#define Ai3P_DISABLE_BSP 0//-----------------------------------------------// Includes board-specific peripherals support in application.//-----------------------------------------------#include //-----------------------------------------------// Atmel communication interfaces identifiers.// Supported interfaces are platform and application dependent.//-----------------------------------------------#define APP_INTERFACE_USART 0x01#define APP_INTERFACE_VCP 0x02#define APP_INTERFACE_SPI 0x03#define APP_INTERFACE_UART 0x04#define APP_INTERFACE_USBFIFO 0x05//-----------------------------------------------// Atmel external memory identifiers.// Supported memory is platform and application dependent.//-----------------------------------------------#define AT25F2048 0x01#define AT45DB041 0x02#define AT25DF041A 0x03// Use Persistent Data Server to provide data protection in case of power failure#define APP_USE_PDS 0//#define APP_USE_PDS 1// Defines device role for boards witohut DIP switches. This parameter should not// be confused with Library Type parameter. Device role must match library type if// library type is not 'all'.#define APP_DEVICE_TYPE DEV_TYPE_COORDINATOR//Device is End Device//#define APP_DEVICE_TYPE DEV_TYPE_ENDDEVICE//Device is Router//#define APP_DEVICE_TYPE DEV_TYPE_ROUTER// Intervals in which coordinator and routers are sending state of their sensors.#define APP_TIMER_SENDING_PERIOD 10000// Maximum amount of failed transmissions before network rejoin procedure is// initiated.#define APP_THRESHOLD_FAILED_TRANSMISSION 4// Configuring device caption support. Caption will be shown in WSNMonitor tool// window.#define APP_USE_DEVICE_CAPTION 1//#define APP_USE_DEVICE_CAPTION 0// Support Atmel RCB KeyRemote board#define APP_RCB_KEY_REMOTE_SUPPORT 0//#define APP_RCB_KEY_REMOTE_SUPPORT 1//-----------------------------------------------//APP_USE_DEVICE_CAPTION == 1//-----------------------------------------------#if (APP_USE_DEVICE_CAPTION == 1) // Device caption, shown in WSNMonitor. Must be less, than 15 characters. #define APP_DEVICE_CAPTION "coordinator"#endif//-----------------------------------------------//BOARD_MESHBEAN//-----------------------------------------------#ifdef BOARD_MESHBEAN // Enable this option if target board belongs to MNZB-EVBx family #define BSP_MNZB_EVB_SUPPORT 0 //#define BSP_MNZB_EVB_SUPPORT 1 // Defines primary serial interface type to be used by application. #define APP_INTERFACE APP_INTERFACE_USART // Defines USART interface name to be used by application. #define APP_USART_CHANNEL USART_CHANNEL_1#endif//-----------------------------------------------//BOARD_RCB//-----------------------------------------------#ifdef BOARD_RCB // Enable this option if target board suports controlling of TTL to RS232 converter // enable pin. #define BSP_ENABLE_RS232_CONTROL 1 //#define BSP_ENABLE_RS232_CONTROL 0 // Defines primary serial interface type to be used by application. #define APP_INTERFACE APP_INTERFACE_USART //#define APP_INTERFACE APP_INTERFACE_USBFIFO //----------------------------------------------- //APP_INTERFACE == APP_INTERFACE_USART //----------------------------------------------- #if (APP_INTERFACE == APP_INTERFACE_USART) // Defines USART interface name to be used by application. #define APP_USART_CHANNEL USART_CHANNEL_1 #endif //----------------------------------------------- //APP_INTERFACE == APP_INTERFACE_USBFIFO //----------------------------------------------- #if (APP_INTERFACE == APP_INTERFACE_USBFIFO) // Defines USART interface name to be used by application. #undef APP_USART_CHANNEL #define APP_USART_CHANNEL USART_CHANNEL_USBFIFO #endif#endif//-----------------------------------------------//AT86RF212//-----------------------------------------------#ifdef AT86RF212 // Enables or disables Listen Before Talk feature. #define CS_LBT_MODE false //#define CS_LBT_MODE true // 32-bit mask of channels to be scanned before network is started. Channels that // should be used are marked with logical 1 at corresponding bit location. // Valid channel numbers for 2.4 GHz band are 0x0b - 0x1a // Valid channel numbers for 900 MHz band are 0x00 - 0x0a // // Notes: // 1. for small amount of enabled channels it is more convinient to specify list // of channels in the form of '(1ul