📄 conu1.h
字号:
/*
** CONU1.h
** console I/O library for Explorer16 board
*/
// I/O definitions for the Explorer16
#define CTS1 _RD14 // Cleart To Send, input, HW handshake
#define RTS1 _RD15 // Request To Send, output, HW handshake
#define BACKSPACE1 0x8 // ASCII backspace character code
// init the serial port (UART2, 115200@32MHz, 8, N, 1, CTS/RTS )
void initU1( void);
// send a character to the serial port
int putU1( int c);
// wait for a new character to arrive to the serial port
char getU1( void);
// send a null terminated string to the serial port
void putsU1( char *s);
// receive a null terminated string in a buffer of len char
char * getsn1( char *s, int n);
// useful macros
#define clrscr1() putsU1( "\x1b[2J")
#define home1() putsU1( "\x1b[H")
#define pcr1() putU1( '\r')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -