[En-Nut-Discussion] serial UART outpuit / printf

Ing. Joachim Skale joachim.skale at tele2.at
Wed Oct 5 08:26:35 CEST 2005


hi, 

i have tried to use the UART as a Debug Device, but i cant see anything with my terminal program
hints whats wrong ?

NutRegisterDevice(&devUart0, 0, 0);
	NutRegisterDevice(&devEth0, 0, 0);

	rs232 = fopen("uart0", "w");
	
	_ioctl(_fileno(rs232), UART_SETSPEED, &baud);
	_ioctl(_fileno(rs232), UART_SETSTOPBITS, 1);
	_ioctl(_fileno(rs232), UART_SETDATABITS, 8);
	_ioctl(_fileno(rs232), UART_SETPARITY, 0);
	
	fprintf(rs232,"\nUART open:\n");



More information about the En-Nut-Discussion mailing list