timer_isr.h
来自「基于visual dsp++开发环境」· C头文件 代码 · 共 34 行
H
34 行
#ifndef _TIMER_ISR_H_
#define _TIMER_ISR_H_
//--------------------------------------------------------------------------//
// Header files //
//--------------------------------------------------------------------------//
#include <sys\exception.h>
#include <cdefBF538.h>
//--------------------------------------------------------------------------//
// Symbolic constants //
//--------------------------------------------------------------------------//
#define TIMEOUT_PERIOD 0x00002000
//--------------------------------------------------------------------------//
// Global variables //
//--------------------------------------------------------------------------//
//--------------------------------------------------------------------------//
// 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 + =
减小字号Ctrl + -
显示快捷键?