📄 ledcontrol.h
字号:
/***************************************************************************** * * MODULE: Demo board LED controls * * COMPONENT: LedControl.h,v * * VERSION: R&DRelease_20Jun2007 * * REVISION: 1.2 * * DATED: 2007/02/02 08:28:16 * * STATUS: Exp * * AUTHOR: CJG * * DESCRIPTION: * Macros to make it easier to drive LEDs on demo boards * * LAST MODIFIED BY: 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 + -