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

📄 timer_isr.h

📁 ADI Blackfin BF51X 範例程式
💻 H
字号:
/*******************************************************************************/
/*                                                                             */
/*   (C) Copyright 2008 - Analog Devices, Inc.  All rights reserved.           */
/*                                                                             */
/*    FILE:     timer_isr.h ( )					  				                   */
/*                                                                             */
/*    CHANGES:  1.00.0  - initial release    								   */
/*																			   */
/*******************************************************************************/

#ifndef _TIMER_ISR_H_
#define _TIMER_ISR_H_

#include <sys\exception.h>
#include <cdefBF518.h>
#include <ccblkfn.h>

/*******************************************************************
*  global variables and defines
*******************************************************************/
#define TIMEOUT_PERIOD	0x00002000


/*******************************************************************
*  function prototypes
*******************************************************************/
void Init_Timers(void);
void Init_Timer_Interrupts(void);
void Delay(const unsigned long ulMs);
unsigned int SetTimeout(const unsigned long ulTicks);
unsigned long ClearTimeout(const unsigned int nIndex);
bool IsTimedout(const unsigned int nIndex);

EX_INTERRUPT_HANDLER(Timer_ISR);

#endif /* _TIMER_ISR_H_ */

⌨️ 快捷键说明

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