net_timer.h

来自「motorola 针对coldfire 5275 评估板的Dbug bootlo」· C头文件 代码 · 共 38 行

H
38
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?