Forum Discussion
Altera_Forum
Honored Contributor
19 years agowith fprintf:
fprintf(FILE, "%d\r\n", var); instead do this: char buffer[1000]; int count; sprintf(buffer, "%d\r\n", var); for(count = 0; buffer[count]; ++count) { IOWR_ALTERA_AVALON_UART_TXDATA(UART_0_BASE, buffer[count]); } This is quick and dirty. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif Missing is buffer overrun check but it will basicly work. Karsten