| 76 | uart_set_format(uart, data_bits, stop_bits, parity); |
| 77 | } |
| 78 | void UARTInterface::reset_transfer() |
| 79 | { |
| 80 | if (uart == uart0) |
| 81 | { |
| 82 | current_0 = 0; |
| 83 | } |
| 84 | if (uart == uart1) |
| 85 | { |
| 86 | current_1 = 0; |
| 87 | } |
| 88 | } |
| 89 | long UARTInterface::last_read_time() |
| 90 | { |
| 91 | if (uart == uart0) |