conu1.h

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

H
30
字号
/*
** 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 + =
减小字号Ctrl + -
显示快捷键?