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

📄 pbled_test.h

📁 ADSP 地层驱动
💻 H
字号:
/*********************************************************************************

Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved. 

This software is proprietary and confidential.  By using this software you agree
to the terms of the associated Analog Devices License Agreement.  


Description:
			This is the source code for the Blackfin BF533 ez-kIT Power On Self Test 
			(POST).
			
*********************************************************************************/
#ifndef _PBLED_TEST_H_
#define _PBLED_TEST_H_


//--------------------------------------------------------------------------//
// Header files																//
//--------------------------------------------------------------------------//
#include <sys\exception.h>
#include <cdefBF533.h>


/////////////////////////        Constants        ////////////////////////////////


typedef enum LEDS_tag{
	LED4 = 0x01,
	LED5 = 0x02,
	LED6 = 0x04,
	LED7 = 0x08,
	LED8 = 0x10,
	LED9 = 0x20,
	LAST_LED = 0x40
}enLED;

typedef enum SW_PFS_tag{
	SW4_PF8  = 0x100,
	SW5_PF9  = 0x200,
	SW6_PF10  = 0x400,
	SW7_PF11  = 0x800,
	LAST_SW_PF = 0x1000
}enSW_PF;


#define BLINK_FAST		2000
#define BLINK_SLOW		(BLINK_FAST * 2)


///////////////////////////   Function Prototypes     ///////////////////////////
void Init_LEDs(void);
void Init_PushButtons(void);

void ClearSet_LED(const enLED led, const int bState);
void LED_Bar(const int iSpeed);
void Blink_LED(const int enleds, const int iSpeed);
void ClearSet_LED_Bank(const int enleds, const int iState);
int GetPushButtons(void);

void Delay(const unsigned long ulMs);

#endif //_PBLED_TEST_H_

⌨️ 快捷键说明

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