-
- /* Load bytes from the UART transmit buffer into the UART */
- if (!(RingBuffer_Empty(&USBtoUART_Buffer)) && SoftUART_IsReady())
- SoftUART_TxByte(RingBuffer_Remove(&USBtoUART_Buffer));
-
- /* Load bytes from the UART into the UART receive buffer */
- if (SoftUART_IsReceived())
- RingBuffer_Insert(&UARTtoUSB_Buffer, SoftUART_RxByte());