Skip to content

Instantly share code, notes, and snippets.

@rvalles
rvalles / libticables2_uart_rtscts.patch
Created October 11, 2020 09:25
Make libticables2 work (on linux) with dbus-behind-uart-on-ttyUSB bridges like dbus_ti_link_uart_verilog. Change baudrate to 115200. Enable RTS/CTS flow control.
diff --unified --text libticables2-1.3.5/src/linux/detect.c libticables2-1.3.5-fpga/src/linux/detect.c
--- libticables2-1.3.5/src/linux/detect.c 2016-04-04 14:59:39.000000000 +0900
+++ libticables2-1.3.5-fpga/src/linux/detect.c 2020-10-09 16:38:56.564237490 +0900
@@ -331,7 +331,7 @@
}
serinfo.reserved_char[0] = 0;
- if (ioctl(fd, TIOCGSERIAL, &serinfo) < 0)
+ /*if (ioctl(fd, TIOCGSERIAL, &serinfo) < 0)
{
@rvalles
rvalles / libticables2_uart.patch
Last active October 17, 2020 09:21
Make libticables2 work (on linux) with dbus-behind-uart-on-ttyUSB bridges like dbus_ti_link_uart_verilog. Change baudrate to 57600.
diff --unified --text libticables2-1.3.5/src/linux/detect.c libticables2-1.3.5-fpga/src/linux/detect.c
--- libticables2-1.3.5/src/linux/detect.c 2016-04-04 14:59:39.000000000 +0900
+++ libticables2-1.3.5-fpga/src/linux/detect.c 2020-10-09 16:38:56.564237490 +0900
@@ -331,7 +331,7 @@
}
serinfo.reserved_char[0] = 0;
- if (ioctl(fd, TIOCGSERIAL, &serinfo) < 0)
+ /*if (ioctl(fd, TIOCGSERIAL, &serinfo) < 0)
{