Skip to content

Due HardwareSerial Transmit not interrupt-driven... #2271

@WestfW

Description

@WestfW

I would have expected that the Due Serial ports would be interrupt driven for both transmit and receive, just like the AVR serial ports. But in fact the Due transmit code (UARTClass::write and USARTClass::write uses busy-loops:

size_t USARTClass::write( const uint8_t uc_data )
{
// Check if the transmitter is ready
while ((_pUsart->US_CSR & US_CSR_TXRDY) != US_CSR_TXRDY)
;

// Send character
_pUsart->US_THR = uc_data ;
return 1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions