Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

UART CTS question

I have configured the UART in SOPC Builder with RTS/CTS,

but I don't want to use it in software.

If I have no cable attached (CTS high), program hangs.

How can I clear the device flag "ALT_AVALON_UART_FC" by software ???

static void alt_avalon_uart_txirq (alt_avalon_uart_dev* dev,

alt_u32 status)

{

/* Transfer data if there is some ready to be transfered */

if (dev->tx_start != dev->tx_end)

{

/*

* If the device is using flow control (i.e. RTS/CTS), then the

* transmitter is required to throttle if CTS is high.

*/

// !!!TF

// if (!(dev->flags & ALT_AVALON_UART_FC) ||

// (status & ALTERA_AVALON_UART_STATUS_CTS_MSK))

if(1)

thanks
No RepliesBe the first to reply