Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
I simply replace \n with \r\n in the printf's. Its not elegant but it works.
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
only baudrate is suupported by ioctrl(),
you can take the files altera_avalon_uart.c and altera_avalon_uart.h from the components directory and copy it to your systemlibrary directory or change them in place. there are different functions for the small driver. in function "alt_avalon_uart_write" ... ... /* Add the next character to the transmit buffer */ dev->tx_buf[dev->tx_end] = *ptr++; dev->tx_end = next; change to (not tested !!!, maybe wrong): ... ... dev->tx_buf[dev->tx_end] = *ptr; dev->tx_end = next; if(*ptr=='\n') { *ptr='\r; // replace 'n' by '\r', do not increment ptr } else { ptr++; } dev->tx_end = next; ... - Altera_Forum
Honored Contributor
ok, thanks.