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

📄 regcmd.c

📁 T-Kernel Shell Sample
💻 C
字号:
/*""FILE COMMENT""**************************************************************   System Name : RENESAS uT-Engine*   File Name   : regcmd.c*   Version     : 1.01.00*   Contents    : Get or Set CPU's Registers*   Model       : RENESAS T-Engine/uT-Engine*   CPU         : RENESAS T-Engine Series CPU*   Compiler    : GNU*   OS          : T-Kernel**   note        : The Software is being delivered to you "AS IS" *               : and Renesas,whether explicitly or implicitly makes  *               : no warranty as to its Use or performance. *               : RENESAS AND ITS SUPPLIER DO NOT AND CANNOT WARRANT *               : THE PERFORMANCE OR RESULTS YOU MAY OBTAIN  BY USING *               : THE SOFTWARE. AS TO ANY MATTER INCLUDING WITHOUT *               : LIMITATION NONINFRINGEMENT OF THIRD PARTY RIGHTS,*               : MERCHANTABILITY, INTEGRATION, SATISFACTORY QUALITY, *               : OR FITNESS FOR ANY PARTICULAR PURPOSE.**   Copyright (c) 2004-2006 RENESAS TECHNOLOGY CORP. All Rights Reserved.*   AND RENESAS SOLUTIONS CORP. All Rights Reserved.**   history     : 2004.10.01 ver1.00.00*               : 2006.02.01 ver1.01.00*""FILE COMMENT END""*********************************************************/#ifdef _MIC_SH7145_#include <tk/tkernel.h>#include "shell.h"#include "shelldisp.h"#include "breakcmd.h"extern W errcode;extern RegTable *regtable;extern int argcnt;void setBreakRegisters(RegTable *);void printBreakRegisters(RegTable *);/*""FUNC COMMENT""******************************************************* * ID          : X.Y.Z * Abstructs   : "REG" command *----------------------------------------------------------------------- * Include     :  *----------------------------------------------------------------------- * Definition  : void REG_cmd() *----------------------------------------------------------------------- * Function    : "REG" command exec function *----------------------------------------------------------------------- * Argument    : None *-----------------------------------------------------------------------  * Return      : None *----------------------------------------------------------------------- * Input       : RegTable *regtable; register stack  *             : int argcnt; * Output      : W errcode; error code  *----------------------------------------------------------------------- * Used Func   : printBreakRegisters() *             : setBreakRegisters()  *----------------------------------------------------------------------- * Notice      : None *""FUNC COMMENT END""***************************************************/void REG_cmd(){	switch(argcnt){		case 0:			printBreakRegisters(regtable);			break;		case 2:			setBreakRegisters(regtable);			break;		default:			errcode = ER_ILLEGALPAR;			break;	}	}#endif // _MIC_SH7145_

⌨️ 快捷键说明

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