📄 net_timer.h
字号:
/*
* File: net_timer.h
* Purpose: Provide a timer use by the dBUG network as a timeout
* indicator
*
* Notes:
*/
#ifndef _TIMER_H_
#define _TIMER_H_
/********************************************************************/
typedef struct
{
uint8 ch; /* which channel is this structure for? */
uint8 lvl; /* Interrupt level for this channel */
uint8 pri; /* Interrupt priority for this channel */
uint8 reference; /* timeout indicator */
uint32 gms; /* mode select register value */
uint16 pre; /* prescale value */
uint16 cnt; /* prescaled clocks for timeout */
} NET_TIMER;
/********************************************************************/
uint32
timer_init(uint8, uint8, uint8);
/********************************************************************/
/* Vector numbers for all the timer channels */
#define TIMER_VECTOR(x) (126-x)
/********************************************************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -