📄 io_uart1.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 + -