⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 led.h

📁 PEAKAUDIO用于EV2板的MCU控制源码
💻 H
字号:
/*************************************************************************

	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -