36 #ifndef __OS_HAL_UART_H__
37 #define __OS_HAL_UART_H__
39 #include "mhal_uart.h"
303 u8 xon1, u8 xoff1, u8 xon2, u8 xoff2, u8 escape_data);
341 u8 *data, u32 len,
bool vff_mode, u32 timeout);
357 u8 *data, u32 len,
bool vff_mode, u32 timeout);
mhal_uart_data_len
This enum defines UART data length.
Definition: mhal_uart.h:112
Use ISU3 as UART port.
Definition: os_hal_uart.h:158
void mtk_os_hal_uart_set_baudrate(UART_PORT port_num, u32 baudrate)
Set UART Baudrate.
void mtk_os_hal_uart_set_format(UART_PORT port_num, mhal_uart_data_len data_bit, mhal_uart_parity parity, mhal_uart_stop_bit stop_bit)
Set UART data format.
UART_PORT
The enum definition of UART PORT.
Definition: os_hal_uart.h:148
u8 mtk_os_hal_uart_get_char_nowait(UART_PORT port_num)
Get UART one byte of data directly in PIO mode.
int mtk_os_hal_uart_dma_send_data(UART_PORT port_num, u8 *data, u32 len, bool vff_mode, u32 timeout)
Send UART data in DMA mode.
Use ISU0 as UART port.
Definition: os_hal_uart.h:152
Use ISU1 as UART port.
Definition: os_hal_uart.h:154
Use ISU2 as UART port.
Definition: os_hal_uart.h:156
mhal_uart_parity
This enum defines UART parity parameter.
Definition: mhal_uart.h:125
void mtk_os_hal_uart_dumpreg(UART_PORT port_num)
Dump UART register.
void mtk_os_hal_uart_set_irq(UART_PORT port_num, u8 irq_flag)
Set UART IRQ.
void mtk_os_hal_uart_set_hw_fc(UART_PORT port_num, u8 hw_fc)
Set UART hardware flow control.
int mtk_os_hal_uart_ctlr_init(UART_PORT port_num)
Init UART controller.
int mtk_os_hal_uart_clear_irq_status(UART_PORT port_num)
Get and clear UART interrupt.
void mtk_os_hal_uart_set_sw_fc(UART_PORT port_num, u8 xon1, u8 xoff1, u8 xon2, u8 xoff2, u8 escape_data)
Set UART software flow control.
Use ISU4 as UART port.
Definition: os_hal_uart.h:160
void mtk_os_hal_uart_put_char(UART_PORT port_num, u8 data)
Send UART one byte of data in PIO mode.
The maximum ISU number (invalid)
Definition: os_hal_uart.h:162
int mtk_os_hal_uart_ctlr_deinit(UART_PORT port_num)
Deinit UART controller.
Use CM4-UART as UART port.
Definition: os_hal_uart.h:150
u8 mtk_os_hal_uart_get_char(UART_PORT port_num)
Get UART one byte of data in PIO mode.
mhal_uart_stop_bit
This enum defines stop bit length.
Definition: mhal_uart.h:140
void mtk_os_hal_uart_disable_sw_fc(UART_PORT port_num)
Disable UART software flow control.
int mtk_os_hal_uart_dma_get_data(UART_PORT port_num, u8 *data, u32 len, bool vff_mode, u32 timeout)
Get UART data in DMA mode.