📄 config.h
字号:
/**************************************************************************** * * MODULE: config.h * * COMPONENT: $RCSfile: config.h,v $ * * VERSION: $Name: $ * * REVISION: $Revision: 1.1 $ * * DATED: $Date: 2008/01/30 09:52:08 $ * * STATUS: $State: Exp $ * * AUTHOR: Ian Morris * * DESCRIPTION * * CHANGE HISTORY: * * $Log: config.h,v $ * Revision 1.1 2008/01/30 09:52:08 lmitch * Updated to work with new SDK * * Revision 1.1 2006/07/24 14:40:11 rmm * First Release 1v0 (Based on Application Note JN-AN-1005-Wireless-UART Version 1.5). * * * * LAST MODIFIED BY: $Author: lmitch $ * $Modtime: $ * * **************************************************************************** * * This software is owned by Jennic and/or its supplier and is protected * under applicable copyright laws. All rights are reserved. We grant You, * and any third parties, a license to use this software solely and * exclusively on Jennic products. You, and any third parties must reproduce * the copyright and warranty notice and any other legend of ownership on each * copy or partial copy of the software. * * THIS SOFTWARE IS PROVIDED "AS IS". JENNIC MAKES NO WARRANTIES, WHETHER * EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, * ACCURACY OR LACK OF NEGLIGENCE. JENNIC SHALL NOT, IN ANY CIRCUMSTANCES, * BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, SPECIAL, * INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER. * * Copyright Jennic Ltd 2005, 2006, 2007. All rights reserved * ****************************************************************************/#ifndef CONFIG_H_INCLUDED#define CONFIG_H_INCLUDED#if defined __cplusplusextern "C" {#endif/****************************************************************************//*** Include Files ***//****************************************************************************/#include <jendefs.h>/****************************************************************************//*** Macro Definitions ***//****************************************************************************//* Network parameters */
#define PAN_ID 0x0401U
#define COORD_ADDR 0x0502U
/* Wireless UART device data */
#define MAX_UART_NODES 1
#define UART_NODE_ADDR_BASE 0x1000U
#define MAX_DATA_PER_FRAME 64
#define TICK_PERIOD_ms 10UL
#define TICK_PERIOD_COUNT (16000UL * TICK_PERIOD_ms)
/* Defines the channels to scan. Each bit represents one channel. All channels
in the channels (11-26) in the 2.4GHz band are scanned. */
#define SCAN_CHANNELS 0x07FFF800UL
#define CHANNEL_MIN 11
#define ACTIVE_SCAN_DURATION 3
#define ENERGY_SCAN_DURATION 3 /* Duration (ms) = ((960 * (2^ENERGY_SCAN_DURATION + 1)) / 62.5) */
/* Define which of the two available hardware UARTs and what baud rate to use */
#define UART E_AHI_UART_0
#define UART_BAUD_RATE 19200
/****************************************************************************//*** Type Definitions ***//****************************************************************************//****************************************************************************//*** Exported Functions ***//****************************************************************************//****************************************************************************//*** Exported Variables ***//****************************************************************************/#if defined __cplusplus}#endif#endif /* CONFIG_H_INCLUDED *//****************************************************************************//*** END OF FILE ***//****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -