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

📄 portterm.h

📁 ertfs文件系统里面既有完整ucos程序
💻 H
字号:
//
// portterm.h
//  
//   EBS - ERTFS
//  
//   Copyright EBS Inc , 1993,1994,1995
//   All rights reserved.
//   This code may not be redistributed in source or linkable object form
//   without the consent of its author.
//
//
//    Module description:
//        This file contains terminal IO routines used by the sample programs
//        and by routines that print diagnostics. 
//
//        Two sets of macros are exported from this module.. tm_gets() and
//        tm_printf() and tm_printf_x(X,Y,Z).
//        tm_gets() reads a line from the console, tm_printf() implements
//        a printf algorithm to the console.
//  
// Printf and gets are not essential for the operation of rtfs but are handy
// please search the code for where they are used and replace them with 
// os specific code.

// This is for ERTFS_STAND_ALONE only. Not used in RTIP enviroment

#include <stdio.h>

#define tm_gets(X) gets(X);
#define tm_printf(X) printf(X)
#define tm_printf_2(X,Y) printf(X,Y)
#define tm_printf_3(X,Y,Z) printf(X,Y,Z)




⌨️ 快捷键说明

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