Álvaro Fernández Rojas
206b612bae
uart-bridge: improve usb_write_bytes
...
tud_cdc_n_write() may not be able to write the full buffer, so we need to
handle that by moving the remaining bytes in the buffer to the buffer start.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-06 12:05:47 +01:00
Álvaro Fernández Rojas
3f9c9fadde
uart-bridge: add LC mutex
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-06 11:27:34 +01:00
Álvaro Fernández Rojas
8d9d952dde
uart-bridge: remove unused variables
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-06 11:27:34 +01:00
Álvaro Fernández Rojas
410eef18ef
uart-bridge: expose both HW UARTs
...
With these changes, both HW UARTs will be exposed as two independent USB-UART
bridge controllers.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-04 09:08:41 +01:00
Álvaro Fernández Rojas
911bf03c80
uart-bridge: use DEF_BIT_RATE for CDC LC
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-04 09:03:46 +01:00
Álvaro Fernández Rojas
85383842d5
uart-bridge: code refactor
...
Avoid lines with more than 80 characters.
Fix indentation (tabs = 8 spaces).
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-03 15:45:04 +01:00
Álvaro Fernández Rojas
f46d93bb54
uart-bridge: fix incorrect uart_parity_t usage
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-03 15:33:45 +01:00
Álvaro Fernández Rojas
7bac4bd99a
uart-bridge: remove unneeded semicolon
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-03 15:29:50 +01:00
Álvaro Fernández Rojas
994eab59f5
Import project files
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-03 13:21:20 +01:00