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

📄 tpro.h

📁 内核中关于nano计时的功能
💻 H
字号:
/* * Define constants and structures for the KSI/Odetics TPRO IRIG board. */#ifndef EXT_CLOCK#define EXT_CLOCK#endif /* EXT_CLOCK *//* * Note: The physical address adventure assumes the board must be in * slot 1. This should be fixed. */#define	TPRO_ADDR	0xfa008000 	/* physical address of regs */#define MAXDIFF		1000		/* max tpro - system time difference */#define	DAY		86400		/* seconds in a day */#define	DAY_YEAR	31536000	/* seconds in a normal year */#define	DAY_CYCLE	126230400	/* seconds in a leap cycle *//* * Status register decode (tprostat) */#define	TPRO_READY	0x01		/* output not ready */#define	TPRO_SIG	0x02		/* IRIG signal okay */#define	TPRO_SYNC	0x04		/* IRIG sync okay *//* * Error return codes */#define	ENOSIG		-4		/* lost IRIG signal */#define	ENOSYNC		-3		/* lost IRIG sync */#define	EBADDATA	-2		/* invalid IRIG data */#define EBADTIME	-1		/* invalid IRIG time *//* * Data/status registers */#ifndef	LOCOREstruct tproregs {	u_long	tprolo;		/* low-order toy - read first */	u_long	tprohi;		/* high-order toy - read last */	u_char	tprocom;	/* command register */	u_char	tproevt;	/* internal event */	u_char	tprofifo;	/* fifo */	u_char	tprostat;	/* status */};#endif	/* LOCORE */

⌨️ 快捷键说明

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