• robert-hh's avatar
    esp8266/machine_uart: Implement uart.flush() and uart.txdone(). · 8804993d
    robert-hh authored
    uart.flush()
    
    flush() will wait until all characters but the last one have been sent.
    It returns while the last character is sent. If needed, the calling
    code has to add one character wait time. To avoid a permanent lock,
    a timeout applies depending on the size of the FIFO and the baud rate.
    
    ret = uart.txdone()
    
    ret is True if no transfer is in progress. It returns already True when
    the last byte of a transfer is sent.
    ret is False otherwise.
    8804993d
uart.c 10.9 KB