makeiftd.pl

来自「uT Kernel os source code for AT91」· PL 代码 · 共 52 行

PL
52
字号
#! /usr/local/bin/perl## ----------------------------------------------------------------------#     micro T-Kernel##     Copyright (C) 2006-2007 by Ken Sakamura. All rights reserved.#     micro T-Kernel is distributed under the micro T-License.# ----------------------------------------------------------------------##     Version:   1.00.00#     Released by T-Engine Forum(http://www.t-engine.org) at 2007/03/26.## ----------------------------------------------------------------------###	makeiftd.pl##	generate interface library for H8S#sub makelib{	print LIB <<EndOfIfLibBody;#include <machine.h>#include <tk/sysdef.h>#include <sys/svc/$fn_h>#include "utk_config.h"	.h8300s#if USE_TRAP || (USE_DBGSPT && USE_HOOK_TRACE)	.text	.balign	2	.globl	Csym(${func})Csym(${func}):	mov.w	r0, \@-er7	mov.w	#TDFN_${Func}, r0#if USE_TRAP	trapa	#TRAP_DEBUG#else	jsr	Csym(knl_call_dbgspt)#endif	inc.l	#2, er7	rts#endifEndOfIfLibBody}1;

⌨️ 快捷键说明

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