📄 sio.h
字号:
/*
********************************************************************************
*
* (c) Copyright 2002, Vineyard Technologies, Inc.
*
* Filename : sio.h
* Programmer(s): Steve KyeongHyeon Lee
* Created : 2003/05/07
* Modified :
*
* Description :
********************************************************************************
*/
#ifndef __SIO_H__
#define __SIO_H__
#include "types.h"
//###############################################################################
//
//###############################################################################
#define TBUF_SIZE 34 //64
#define RBUF_SIZE 34
extern xdata char tbuf[TBUF_SIZE];
extern xdata char rbuf[RBUF_SIZE];
extern xdata u16 t_in;
extern xdata u16 t_out;
extern xdata u16 r_in;
extern xdata u16 r_out;
//extern xdata u8 t_disable;
#ifdef RS232_TO_PC_TRANSFER
//extern xdata u16 num00;//Tx Byte number
//extern xdata u16 secnum01;//Tx sector number
//extern xdata u16 secnum02;//count sector number
#endif
#ifdef DISPLAY_IP_ADDRESS
extern xdata u16 r_timeout;
extern xdata u16 t_timeout;
#endif
#ifdef DEBUG_PRINT
char putchar(char c);
#endif
void sio_init(void);
//====================================================================
// sio primitives for receiving characters
//====================================================================
u8 sio_rbuflen(void);
u8 sio_getchar(void);
char sio_putchar(u8 c);
#endif // #ifndef __SIO_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -