| 248 | #endif |
| 249 | |
| 250 | int 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 | } |
| 274 | INIT_BOARD_EXPORT(rt_hw_uart_init); |
nothing calls this directly
no test coverage detected