?? ledcontrol.h
字號:
/***************************************************************************** * * 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -