portterm.h
来自「ertfs文件系统里面既有完整ucos程序」· C头文件 代码 · 共 36 行
H
36 行
//
// 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)
#define tm_gets Uart_GetString
#define tm_printf Uart_Printf
#define tm_printf_2 Uart_Printf
#define tm_printf_3 Uart_Printf
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?