Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to access UART that is not STDIN or STDOUT
how do I access / call the uart if it is not SDTIN or STDOUT? my nios has 3 uarts, UART_ONE at 115200, UART_TWO at 57600, and UART_THREE at 38400. in my SOPC, UART_ONE is set to STDIN and STDOUT, and...
Altera_Forum
Honored Contributor
14 years agoYep that's what I have found, because of my limited RAM and storage space, I have to bypass the alt_getchar, alt_putchar, and alt_printf functions, Our system is configured with "enable_reduced_drivers set" and under avalon_uart_driver, "enable_small_driver is set"
so a limited HAL is created and the uart drivers are generated as macros with dedicated device address, so the functions can not be "re-used" we have to read the uart status registers, and stuff data into RX and TX registers, ourselfs ' basically creating a new driver "