[En-Nut-Discussion] Translation of \n to \r\n

Ajit Narayanan ajitn at inventionlabs.in
Sun Nov 30 18:56:05 CET 2008


Hi all,

I am running Ethernut on an AT91SAM7x256 board.

I find that the following statements:
	NutRegisterDevice(&DEV_UART, 0, 0);
	file = fopen(DEV_UART_NAME, "r+");
	fputc( '\n', file );

results in \r\n being sent over the UART, instead of just \n.

Is this the expected behavior? How can I send just a \n?

-Ajit




More information about the En-Nut-Discussion mailing list