[En-Nut-Discussion] RTS/CTS flow control

Thiago A. Corrêa thiago.correa at gmail.com
Mon Aug 14 21:52:05 CEST 2006


Hi,

   I'm investigating why RTS/CTS isn't working on my app, and looking
over the usartavr.c I stumbled over this in AvrUsartGetStatus(void):

#ifdef UART_CTS_BIT
    /*
     * Determine hardware handshake sense status.
     */
    if (bit_is_set(UART_CTS_PIN, UART_CTS_BIT)) {
        rc |= UART_CTSDISABLED;
        if (cts_sense) {
            rc |= UART_RXDISABLED;
        }
    } else {
        rc |= UART_CTSENABLED;
    }
#endif

  Shouldn't the rc |= UART_RXDISABLED be rc |= UART_TXDISABLED? If CTS
signal is disabled the other device isn't ready to receive data.

Cheers,
   Thiago A. Corrêa



More information about the En-Nut-Discussion mailing list