📄 config.h
字号:
/**************************************************************************** * * MODULE: config.h * * COMPONENT: $RCSfile: $ * * VERSION: $Name: $ * * REVISION: $Revision: $ * * DATED: $Date: $ * * STATUS: $State: $ * * AUTHOR: Ian Morris * * DESCRIPTION * * CHANGE HISTORY: * * $Log: $ * * * LAST MODIFIED BY: $Author: $ * $Modtime: $ * * **************************************************************************** * * (c) Copyright 2000 JENNIC Ltd * ****************************************************************************/#ifndef CONFIG_H_INCLUDED#define CONFIG_H_INCLUDED#if defined __cplusplusextern "C" {#endif/****************************************************************************//*** Include Files ***//****************************************************************************/#include <jendefs.h>/****************************************************************************//*** Macro Definitions ***//****************************************************************************/#define LED_OUTPUTS_MASK 0x0000C000UL
#define LED1_MASK 0x00004000UL
#define LED2_MASK 0x00008000UL
#define LED_INIT (vAHI_DioSetDirection(0, LED_OUTPUTS_MASK))
#define LED_1_OFF (vAHI_DioSetOutput(LED1_MASK, 0))
#define LED_1_ON (vAHI_DioSetOutput(0, LED1_MASK))
#define LED_2_OFF (vAHI_DioSetOutput(LED2_MASK, 0))
#define LED_2_ON (vAHI_DioSetOutput(0, LED2_MASK))
/* 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 + -