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

📄 tkdev_conf.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. * *---------------------------------------------------------------------- *//* *	tkdev_conf.h (SH7751R) *	Target System Configuration  */#ifndef _TKDEV_CONF_#define	_TKDEV_CONF_/* * Timer TMU4 */#define	VECNO_TMU4	( 0xb80 >> 5 )	/* TMU4 interrupt vector number */#define	TOCR		0xffd80000	/* B:Timer output control register */#define	TSTR		0xffd80004	/* B:Timer start register */#define	TSTR2		0xfe100004	/* B:Timer start register 2 */#define	TCOR4		0xfe100014	/* W:Timer constant register */#define	TCNT4		0xfe100018	/* W:Timer counter */#define	TCR4		0xfe10001c	/* H:Timer control register */#define	TSTR_STR0	0x01		/* TMU0 start (TSTR) */#define	TSTR_STR1	0x02		/* TMU1 start (TSTR) */#define	TSTR_STR2	0x04		/* TMU2 start (TSTR) */#define	TSTR_STR3	0x01		/* TMU3 start (TSTR2) */#define	TSTR_STR4	0x02		/* TMU4 start (TSTR2) */#define	TCR_ICPF	0x0200		/* Input capture interrupt flag */#define	TCR_UNF		0x0100		/* Underflow flag */#define	TCR_ICPE	0x00c0		/* Input capture enable */#define	TCR_UNIE	0x0020		/* Underflow interrupt enable */#define	TCR_CKEG	0x0018		/* Clock edge */#define	TCR_TPSC	0x0007		/* Timer prescaler */#define	TCR_TPSC_P4	0x0000		/*	Peripheral clock/4 */#define	TCR_TPSC_P16	0x0001		/*	Peripheral clock/16 */#define	TCR_TPSC_P64	0x0002		/*	Peripheral clock/64 */#define	TCR_TPSC_P256	0x0003		/*	Peripheral clock/256 */#define	TCR_TPSC_P1024	0x0004		/*	Peripheral clock/1024 */#define	TCR_TPSC_RTC	0x0006		/*	RTC clock */#define	TCR_TPSC_EXT	0x0007		/*	External clock *//* * Timer interrupt level */#define	TIMER_INTLEVEL		8#endif /* _TKDEV_CONF_ */

⌨️ 快捷键说明

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