I use UART1 to transmit some bytes (max. 100) at 56700, 8,n,1
UARTConfigSetExpClk(UART1_BASE,SysCtlClockGet(),57600,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE));
UARTFIFOLevelSet(UART1_BASE,UART_FIFO_TX4_8, UART_FIFO_RX4_8);
I use DMA to do this.
I use interrupt from UART1 to intercept the end of trasmission with :
ulStatus = uDMAChannelModeGet(UDMA_UART1_TX | UDMA_PRI_SELECT);
if (ulStatus == UDMA_MODE_STOP)
but this interrupt arrives before the bytes are completely spooled out....(with 100 bytes the interrupt arrives 3msec before bytes are completely out)
Someone can tell me how to intercept the effective end of bytes trasmission?
With this UART I would like to drive an half duplex channel and the interrupt change the channel from TX to RX before the bytes are complitely transmitted....how can I do?
I