📄 uart.h
字号:
// UART functions for SDCC by Chin-Shiuh Shieh on 2001-01-01
// Modified by Greg Hunter on 2007-09-19 for Nordic nRF24E1
// uart_init() should be called before using UART
// No syntax error handling
// Comment un-used functions to reduce code size
// UART function protoyype
void uart_init(void); // Set UART Baud Rate to 19200 bps
void uart_putc(char c); // Put Character to UART
//char uart_getc(void); // Get Character from UART
//char uart_getce(void); // Get Character from UART with Echo, Require uart_putc()
void uart_puts(char *s);// Put String to UART, Require uart_putc()
//void uart_gets(char *s);// Get String from UART, Require uart_getce()
void i2s(int i,char *s);// Convert Interger to String
//int s2i(char *s); // Convert String to Integer
void uart_puti(int i); // Put Integer to UART, Require i2s(),uart_puts()
//int uart_geti(); // Get Integer from UART, Require uart_gets(),s2i()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -