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

📄 raw_cio2.c

📁 T-kernel 的extension源代码
💻 C
字号:
/* *---------------------------------------------------------------------- *    T-Kernel / Standard Extension * *    Copyright (C) 2006 by Ken Sakamura. All rights reserved. *    T-Kernel / Standard Extension is distributed  *      under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * *    Version:   1.00.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* *	@(#)raw_cio2.c  * *	The console I/O (on the side of provision) */#include <basic.h>#include <sys/consio.h>/*----------------------------------------------------------------------	Write to the input buffer of the console----------------------------------------------------------------------*/W	cons_put(W port, B *buf, UW len, W tmout){	return	console_put(port, buf, len, tmout);}/*----------------------------------------------------------------------	Write from the output buffer of the console----------------------------------------------------------------------*/W	cons_get(W port, B *buf, UW len, W tmout){	return	console_get(port, buf, len, tmout);}/*----------------------------------------------------------------------        Configuration of the console----------------------------------------------------------------------*/W	cons_conf(W req, UW *arg){IMPORT	void	cons_init(void);	W	er;	er = console_conf(req, arg);	if ((er == 0) && (req == (W)CS_SETPORT)) {		cons_init();	}	return er;}

⌨️ 快捷键说明

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