MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_uart_init

Function rt_hw_uart_init

bsp/phytium/libraries/drivers/drv_usart_msg.c:250–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248#endif
249
250int rt_hw_uart_init(void)
251{
252
253#ifdef RT_USING_UART0_MSG
254 drv_uart0_msg.name = "uart0";
255 drv_uart0_msg.handle = &Ft_Uart0_Msg;
256 drv_uart0_msg.config.uart_instance = FUART0_MSG_ID;
257 uart_msg_init(&drv_uart0_msg);
258#endif
259#ifdef RT_USING_UART1_MSG
260 drv_uart1_msg.name = "uart1";
261 drv_uart1_msg.handle = &Ft_Uart1_Msg;
262 drv_uart1_msg.config.uart_instance = FUART1_MSG_ID;
263 uart_msg_init(&drv_uart1_msg);
264#endif
265#ifdef RT_USING_UART2_MSG
266 drv_uart2_msg.name = "uart2";
267 drv_uart2_msg.handle = &Ft_Uart2_Msg;
268 drv_uart2_msg.config.uart_instance = FUART2_MSG_ID;
269 uart_msg_init(&drv_uart2_msg);
270#endif
271
272 return 0;
273}
274INIT_BOARD_EXPORT(rt_hw_uart_init);

Callers

nothing calls this directly

Calls 1

uart_msg_initFunction · 0.85

Tested by

no test coverage detected