hal_uart: add some details
This commit is contained in:
parent
7cc072bdab
commit
affe5574ec
|
|
@ -20,6 +20,8 @@ __API__ int tos_hal_uart_init(hal_uart_t *uart, hal_uart_port_t port)
|
|||
} else if (port == HAL_UART_PORT_3) {
|
||||
uart->private_uart = &huart3;
|
||||
MX_USART3_UART_Init();
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue