pbled_test.h
来自「ADI Blackfin BF51X 範例程式」· C头文件 代码 · 共 41 行
H
41 行
/*******************************************************************************/
/* */
/* (C) Copyright 2008 - Analog Devices, Inc. All rights reserved. */
/* */
/* FILE: pbled_test.h ( ) */
/* */
/* CHANGES: 1.00.0 - initial release */
/* */
/*******************************************************************************/
#ifndef _PBLED_TEST_H_
#define _PBLED_TEST_H_
/* header files */
#include <sys\exception.h>
#include <cdefBF518.h>
#include <ccblkfn.h>
#define LED1 0x0008
#define LED2 0x0020
#define LED3 0x0040
#define BLINK_FAST 2000
#define BLINK_SLOW (BLINK_FAST * 2)
/* function prototypes */
void Init_LEDs(void);
void Init_PushButtons(void);
void ClearSet_LED(const int led, const int bState);
void LED_Bar(const int iSpeed);
void LED_Bar_Reverse(const int iSpeed);
void LED_Bar_BacknForth(const int iSpeed);
void Blink_LED(const int enleds, const int iSpeed);
void ClearSet_LED_Bank(const int enleds, const int iState);
EX_INTERRUPT_HANDLER(Pushbutton_ISR);
#endif /* _PBLED_TEST_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?