• Earle F. Philhower, III's avatar
    Use interrupts to capture Serial UART data, not polling (#393) · dc1198bd
    Earle F. Philhower, III authored
    PR #379 was an ugly hack which works only if you poll the Serial port more
    frequently than ~8 byte times.
    
    This PR replaces the polling with an IRQ based lockless writer/reader queue
    so that even if you only read every 32 byte times, the Serial1/2 port should
    not lose data.  It also should use less CPU and allow for somewhat higher
    throughput.
    dc1198bd
SerialUART.h 2.5 KB