io.h

来自「opentcp_mcf5282原代码」· C头文件 代码 · 共 52 行

H
52
字号
/*
 * File:		io.h
 * Purpose:		Serial Input/Output routines
 *
 */

#ifndef _IO_H
#define _IO_H

/********************************************************************/

char
uart0_in_char (void);

void
uart0_out_char (char);

int
uart0_char_present (void);

char
uart1_in_char (void);

void
uart1_out_char (char);

int
uart1_char_present (void);

char
uart2_in_char (void);

void
uart2_out_char (char);

int
uart2_char_present (void);

int
printf (const char *, ... );

int
sprintf (char *, const char *, ... );

#define out_char		uart0_out_char
#define in_char			uart0_in_char
#define	char_present	uart0_char_present

/********************************************************************/

#endif

⌨️ 快捷键说明

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