Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

UART CTS question

Altera_Forum
Honored Contributor II
892 Views

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
0 Kudos
0 Replies
Reply