led.h

来自「PEAKAUDIO用于EV2板的MCU控制源码」· C头文件 代码 · 共 42 行

H
42
字号
/*************************************************************************

	led.h

	This include file declares routines and constants to control the three  
	LEDs on the CobraNet evaluation board. 

	Copyright (C) 2001-2004 by Cirrus Logic Inc. All Rights Reserved
*************************************************************************/

#ifndef LED_h
#define LED_h

#define cLED_ON 0
#define cLED_OFF 1
#define cBLINK_OFF 0
#define cBLINK_ON 1

#define cLED_ptr 0x8000

#define cGREEN_LED		0
#define cRED_LED			1
#define cYELLOW_LED		2

#define cBLINK_OFFSET	4

#define opLEDON			0
#define opLEDOFF		1
#define	opBLINKON		2
#define opBLINKOFF	3
#define opTOGGLE		4

#define cCOLOR_ALL	3

extern code struct command_item_t led_command;

extern void LED_Operation( unsigned char which_led, 
													 unsigned char which_operation );
extern void LED_Toggle( unsigned char which_led );

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?