ledcontrol.h
来自「此程式庫有許多的zigbee程式源碼」· C头文件 代码 · 共 79 行
H
79 行
/***************************************************************************** * * MODULE: Demo board LED controls * * COMPONENT: $RCSfile: LedControl.h,v $ * * VERSION: $Name: zed003_cd $ * * REVISION: $Revision: 1.2 $ * * DATED: $Date: 2005/03/31 13:53:34 $ * * STATUS: $State: Exp $ * * AUTHOR: CJG * * DESCRIPTION: * Macros to make it easier to drive LEDs on demo boards * * LAST MODIFIED BY: $Author: cjg $ * $Modtime: $ * **************************************************************************** * * (c) Copyright JENNIC Ltd 2005 * ****************************************************************************/#ifndef LED_CONTROL_INCLUDED#define LED_CONTROL_INCLUDED#if defined __cplusplusextern "C" {#endif/****************************************************************************//*** Include Files ***//****************************************************************************/#include "jendefs.h"#include "AppHardwareApi.h"/****************************************************************************//*** Macro Definitions ***//****************************************************************************/#define LED_CTRL_BASE_BIT 14#define LED_CTRL_MASK_RFD 0x03#define LED_CTRL_MASK_FFD 0x0f#define vLedInitRfd() \ vAHI_DioSetDirection(0, (LED_CTRL_MASK_RFD << LED_CTRL_BASE_BIT))#define vLedInitFfd() \ vAHI_DioSetDirection(0, (LED_CTRL_MASK_FFD << LED_CTRL_BASE_BIT))#define vLedControl(LED,ON) \ vAHI_DioSetOutput((ON) ? 0 : (1 << (LED_CTRL_BASE_BIT + LED)), \ (ON) ? (1 << (LED_CTRL_BASE_BIT + LED)) : 0)/****************************************************************************//*** Type Definitions ***//****************************************************************************//****************************************************************************//*** Exported Functions ***//****************************************************************************//****************************************************************************//*** Exported Variables ***//****************************************************************************/#if defined __cplusplus}#endif#endif /* LED_CONTROL_INCLUDED *//****************************************************************************//*** END OF FILE ***//****************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?