Altera_Forum
Honored Contributor
19 years agoHow to use small driver of JTAG_UART
Dear All,
<div class='quotetop'>QUOTE </div> --- Quote Start --- ■ Specify the preprocessor option -DALTERA_AVALON_JTAG_UART_SMALL. You can use this option if you want the small, polled implementation of the JTAG UART driver, but you do not want to affect the drivers for other devices.[/b] --- Quote End --- I find the information above from Altera Embedded Peripherals Handbook.pdf--page68. But I don't know how to implement it. I have tried define ALTERA_AVALON_JTAG_UART_SMALL in project properties: C/C++ Build->Tool Settings->Nios II Compiler->Preprocessor->Defined Symbols But after recompiling project, I found that it didn't take effect. JTAG_UART still work in interrupt-driven way. Also I can step into altera_avalon_jtag_uart.c to prove that fast driver is in use. I do not want to affect the drivers for other devices when use small driver of JTAG_UART. So I need to use ALTERA_AVALON_JTAG_UART_SMALL symbol. Anyone help? David