📄 winio.h
字号:
/* For Winbug and Wintrack */
/* 80C16x specific */
#if (!defined(INC_WINIO_H))
#define INC_WINIO_H 1
#ifndef cmx_reentrant
#define cmx_reentrant
#endif
#ifndef cmx_xdata
#define cmx_xdata
#endif
#ifndef cmx_code
#define cmx_code const
#endif
/* The following must be tailored to the UART channel and
processor UART specifics */
/* Following may or may not be needed. */
#define XMT_PROLOGUE() {}
/* Enable transmitter */
#define ENABLE_XMT() {S0TIR = TRUE;}
/* Disable transmitter */
#define DISABLE_XMT() {S0TIR = FALSE;}
/* Test and reset transmit done flag. */
#define TEST_XMT(); {while (! S0TIR);}
#define TEST_REC(); { if ( S0EIR ) { S0PE = 0; S0FE = 0; S0EIR = 0; S0RIR = 0; return(0); } \
else if ( S0RIR ) { *ptr = S0RBUF & 0xFF; S0RIR = 0; return(1); } \
else return(0); }
/* Following may or may not be needed. */
#define XMT_EPILOGUE() {}
/* Name of UART TRANSMIT REGISTER */
#define UART_XMT() {S0TIR = 0; S0TBUF = *out_com_ptr++;}
/* Processor specific, please do not change */
/*
static byte TARGET_NAME[21] = {"12345678901234567890"};
*/
static byte TARGET_NAME[21] = {"80C166 "};
#if _MODEL == 'm' || _MODEL == 'l'
#define LARGE_DATA 1
#else
#define LARGE_DATA 0
#endif
#endif /* #if (!defined(INC_WINIO_H)) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -