⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 io_uart1.h

📁 Sunplus 8202S source code.
💻 H
字号:
#ifndef	__IO_UART1_H
#define	__IO_UART1_H

#include "uart.h"
#include "uartfifo.h"

#define RESET_EPP()		UART1_set_baudrate(UART_BAUD_115200)
#define IsEPPRxEmpty()          (!UART1_rx_rdy())
#define EPP_GETC()              (regs0->uart1_data)

#if 0
// direct put
#define IsEPPTxFull()           (!UART1_tx_rdy())
#define IsEPPTxEmpty()          (UART1_tx_empty())
#define EPP_PUTC(c)             (regs0->uart1_data = (c))
#define EPP_PUTC_EXACT(c)        (regs0->uart1_data = (c))
#else
#define IsEPPTxFull()           (is_uart1_fifo_full())
#define IsEPPTxEmpty()          (is_uart1_fifo_empty())
#define EPP_PUTC(c)             (write_uart1(c))
#define EPP_PUTC_EXACT(c)       (write_uart1_exact(c))
#endif

#endif/*__UARTOUT_H*/

⌨️ 快捷键说明

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