Private
Public Access
2
0

UART: Fixing UART issues on UP2

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2018-03-14 12:27:46 -07:00
parent acff725d93
commit cfda9c99d7
3 changed files with 48 additions and 5 deletions

View File

@@ -242,7 +242,11 @@ mraa_up2_board()
// Configure UART
b->uart_dev_count = 0;
b->def_uart_dev = 0;
b->uart_dev[0].device_path = "/dev/ttyS1";
// setting up a default path
if (mraa_find_uart_bus_pci("/sys/bus/pci/devices/0000:00:18.1/dw-apb-uart.9/tty/",
&(b->uart_dev[0].device_path)) != MRAA_SUCCESS) {
goto error;
}
// Configure UART #1 (default)
mraa_up2_get_pin_index(b, "UART_RX", &(b->uart_dev[0].rx));