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

📄 sysinfo_depend.h

📁 日本著名的的嵌入式实时操作系统T-Kernel的源码及用户手册。
💻 H
字号:
/* *---------------------------------------------------------------------- *    T-Kernel * *    Copyright (C) 2004 by Ken Sakamura. All rights reserved. *    T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * *    Version:   1.01.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* *	@(#)sysinfo_depend.h (sys/MB87Q1100) * *	System common information   * *   0x20004000	+-----------------------+ *		|Exception vector table	| *   0x20004180	+-----------------------+ *		|System common info.	| *   0x200041c0	+-----------------------+ */#ifndef __SYS_SYSINFO_DEPEND_H__#define __SYS_SYSINFO_DEPEND_H__#ifdef __cplusplusextern "C" {#endif#ifndef _in_asm_source_/* * Boot mode/Operation mode  */typedef union {	struct {		UW	debug:1;	/* When in debug mode 1 */		UW	fsrcv:1;	/* When in disk repair mode 1 */		UW	rsv:12;		/* Reserved (always 0) */		UW	basic:1;	/* When in basic operation mode 1 */		UW	rsv2:17;	/* Reserved (always 0) */	} c;	UW	w;} BootMode;#define	BM_DEBUG	0x00000001	/* Debug mode */#define	BM_FSRCV	0x00000002	/* Disk repair mode */#define	BM_BASIC	0x00004000	/* Basic operation mode *//* * System shared information   */typedef struct {	VP		ramtop;		/* RAM free space top */	VP		ramend;		/* RAM free space end */	UB		*sysconf;	/* SYSCONF top */	UB		*devconf;	/* DEVCONF top */	W		taskindp;	/* Task independent context flag */	UW		taskmode;	/* Task mode flag */	UH		Hclk;		/* Ext. AHB bus clock (1/100 MHz) */	UH		PAclk;		/* APB_A bus clock (1/100 MHz) */	UH		PBclk;		/* APB_B bus clock (1/100 MHz) */	VH		rsv1;		/* Reserved */	UW		loop64us;	/* Loop count per 64 micro sec */	BootMode	bm;		/* Boot mode */	UB		bootdev[8];	/* Boot device name */	VW		rsv[4];		/* Reserved */} SysCommonInfo;/* * System common area  */#define	N_INTVEC	96typedef struct {	FP		intvec[N_INTVEC];	/* EIT vector */	SysCommonInfo	scinfo;			/* System common information */} SysCommonArea;#define	SCArea	( (SysCommonArea*)0x20004000 )#define	SCInfo	( SCArea->scinfo )#endif /* _in_asm_source_ *//* Definitions used by assembler */#define	SCINFO	 0x20004180#define	RAM_TOP	 ( SCINFO + 0*4 )	/* RAM free space top */#define	RAM_END	 ( SCINFO + 1*4 )	/* RAM free space end */#define	TASKINDP ( SCINFO + 4*4 )	/* Task independent context flag */#define	TASKMODE ( SCINFO + 5*4 )	/* Task mode flag *//* * Vector table address */#define	EIT_VECTBL	0x20004000	/* Vector table top */#define	EITVEC(n)	( EIT_VECTBL + (n) * 4 )#define	EIT_DEFAULT	0		/* Default handler */#define	EIT_UNDEF	1		/* Undefined instruction */#define	EIT_IABORT	2		/* Pre-fetch abort */#define	EIT_DABORT	3		/* Data abort */#define	EIT_FIQ		31		/* High-speed interrupt (FIQ) */#define	EIT_IRQ(n)	( 32 + (n) )	/* Interrupt (IRQ 0-31) */#define	EIT_CPLD(n)	( 71 - (n) )	/* CPLD interrupt (bit 0-7) */#define	EIT_FPGA1(n)	( 79 - (n) )	/* FPGA IRQ_STR1 interrupt (bit 0-7) */#define	EIT_FPGA2(n)	( 87 - (n) )	/* FPGA IRQ_STR2 interrupt (bit 0-7) */#ifdef __cplusplus}#endif#endif /* __SYS_SYSINFO_DEPEND_H__ */

⌨️ 快捷键说明

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