conu2.h

来自「PIc24 Real time clock with alarm and 10s」· C头文件 代码 · 共 30 行

H
30
字号
/*
** CONU2.h
** console I/O library for Explorer16 board
*/

// I/O definitions for the Explorer16
#define CTS2 	_RF12   // Cleart To Send, input, HW handshake
#define RTS2     _RF13   // Request To Send, output, HW handshake
#define BACKSPACE2 0x8   // ASCII backspace character code            

// init the serial port (UART2, 115200@32MHz, 8, N, 1, CTS/RTS )
void initU2( void);

// send a character to the serial port
int putU2( int c);

// wait for a new character to arrive to the serial port
char getU2( void);

// send a null terminated string to the serial port
void putsU2( char *s);

// receive a null terminated string in a buffer of len char
char * getsn( char *s, int n);

// useful macros
#define clrscr() putsU2( "\x1b[2J") 
#define home()   putsU2( "\x1b[H") 
#define pcr()    putU2( '\r')

⌨️ 快捷键说明

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