Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides uart port template
History:
2022-06-06, Create file.
◆ UART_BUS_MAX_NUM
◆ UART_CLOCK_FRQ
| #define UART_CLOCK_FRQ 24000000 |
◆ UART_DLF_SIZE
◆ UART_FIFO_ENABLED
| #define UART_FIFO_ENABLED YES |
◆ UART_L_BAUDRATE
| #define UART_L_BAUDRATE 115200UL |
◆ UART_SHADOW
◆ at_uart_get_rcv_cnt()
| uint32_t at_uart_get_rcv_cnt |
( |
void |
| ) |
|
◆ at_uart_init()
| void at_uart_init |
( |
void |
| ) |
|
◆ hal_uart_clear_pending()
◆ irq_uart0_handler()
| void irq_uart0_handler |
( |
void |
| ) |
|
◆ irq_uart1_handler()
| void irq_uart1_handler |
( |
void |
| ) |
|
◆ irq_uart2_handler()
| void irq_uart2_handler |
( |
void |
| ) |
|
◆ irq_uart3_handler()
| void irq_uart3_handler |
( |
void |
| ) |
|
◆ log_uart_port_init()
| void log_uart_port_init |
( |
void |
| ) |
|
◆ log_uart_port_write()
| void log_uart_port_write |
( |
const uint8_t * |
buffer, |
|
|
uint32_t |
length |
|
) |
| |
◆ sw_debug_uart_reinit()
| void sw_debug_uart_reinit |
( |
uint32_t |
baud_rate | ) |
|
◆ uart_port_config_pinmux()
Config the pinmux of the uarts above.
◆ uart_port_get_clock_value()
| uint32_t uart_port_get_clock_value |
( |
uart_bus_t |
bus | ) |
|
Get the bus clock of specified uart.
- 参数
-
- 返回
- The bus clock of specified uart.
◆ uart_port_get_dma_trans_dest_handshaking()
| uint8_t uart_port_get_dma_trans_dest_handshaking |
( |
uart_bus_t |
bus | ) |
|
Get the DMA destination handshaking select of uart transfer.
- 参数
-
- 返回
- The DMA destination handshaking select of uart transfer.
◆ uart_port_get_dma_trans_src_handshaking()
| uint8_t uart_port_get_dma_trans_src_handshaking |
( |
uart_bus_t |
bus | ) |
|
Get the DMA source handshaking select of uart transfer.
- 参数
-
- 返回
- The DMA source handshaking select of uart transfer.
◆ uart_port_register_hal_funcs()
| void uart_port_register_hal_funcs |
( |
uart_bus_t |
bus | ) |
|
Register hal funcs objects into hal_uart module.
◆ uart_port_register_irq()
Register the interrupt of uarts.
◆ uart_port_save_bus_id()
| errcode_t uart_port_save_bus_id |
( |
int32_t |
dbg_uart_bus, |
|
|
int32_t |
at_uart_bus, |
|
|
int32_t |
hso_uart_bus |
|
) |
| |
◆ uart_port_set_clock_value()
| void uart_port_set_clock_value |
( |
uart_bus_t |
bus, |
|
|
uint32_t |
clock |
|
) |
| |
set the bus clock of specified uart.
- 参数
-
| [in] | bus | The uart bus. see uart_bus_t |
| [in] | clock | The bus clock of specified uart. |
◆ uart_port_set_pending_irq()
Force trigger uart interrupt.
◆ uart_port_unregister_irq()
unRegister the interrupt of uarts.
◆ uart_porting_base_addr_get()
◆ uart_porting_lock()
◆ uart_porting_unlock()
| void uart_porting_unlock |
( |
uart_bus_t |
bus, |
|
|
uint32_t |
irq_sts |
|
) |
| |
uart unlock.
- 参数
-
| bus | uart bus. |
| irq_sts | irq status. |
◆ g_uart_base_addrs
Base address list for all of the IPs.