📄 sysled.h
字号:
/* sysLed.h - system-dependent LED driver Header File *//* * Copyright (c) 2005 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. *//*modification history--------------------01a,23jun05,j_b adapted from wrSbcPowerQuiccII (rev 01b)*/#ifndef __INCsysLedh#define __INCsysLedh#ifdef __cplusplusextern "C" {#endif/* Defines */#define LED_DIGIT 0xfe /* digit mask */#define LED_POINT 0x01 /* point mask */#define LED_ALLON 0x00#define LED_ALLOFF 0xff#define LED_0 0x03#define LED_1 0x9f#define LED_2 0x25#define LED_3 0x0d#define LED_4 0x99#define LED_5 0x49#define LED_6 0x41#define LED_7 0x1b#define LED_8 0x02#define LED_9 0x19#define LED_A 0x11#define LED_B 0xc1#define LED_C 0x63#define LED_D 0x85#define LED_E 0x61#define LED_F 0x71/* Prototypes */#ifndef _ASMLANGUAGE#if defined(__STDC__) || defined(__cplusplus)IMPORT void sysLedInit(void);IMPORT UINT8 sysLedSet(UINT8 mask, UINT8 val);IMPORT void sysLedHex(UINT8 val);#elseIMPORT void sysLedInit();IMPORT UINT8 sysLedSet();IMPORT void sysLedHex();#endif /* __STDC__ */#endif /* _ASMLANGUAGE */#ifdef __cplusplus}#endif#endif /* __INCsysLedh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -