pbled_test.h
来自「基于visual dsp++开发环境」· C头文件 代码 · 共 40 行
H
40 行
#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 + =
减小字号Ctrl + -
显示快捷键?