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

📄 pbled_test.h

📁 基于visual dsp++开发环境
💻 H
字号:
#ifndef _PBLED_TEST_H_
#define _PBLED_TEST_H_


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


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


typedef enum LEDS_tag{
	LED1 = 0x10,
	LED2 = 0x20,
	LED3 = 0x40,
	LED4 = 0x80,
	LED5 = 0x100,
	LED6 = 0x200,
	LAST_LED = 0x400
}enLED;


#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);

#endif //_PBLED_TEST_H_

⌨️ 快捷键说明

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