[En-Nut-Discussion] Bug in half duplex mode

Andrej Taran fant at vinnitsa.com
Thu Aug 3 11:14:39 CEST 2006


In file usartavr.c in AvrUsartSetFlowControl:

#ifdef UART_HDX_BIT
    /*
     * Set half duplex mode.
     */
    if (flags & USART_MF_HALFDUPLEX) {
        /* Register transmit complete interrupt. */
        if (NutRegisterIrqHandler(&sig_UART_TRANS, AvrUsartTxComplete, 
&dcb_usart.dcb_rx_rbf)) {
            return -1;
        }


Correct to:

         if (NutRegisterIrqHandler(&sig_UART_TRANS, AvrUsartTxComplete, 
&dcb_usart.dcb_tx_rbf)) {




More information about the En-Nut-Discussion mailing list