[U-Boot-Users] IO serial problem

Hurricane555 sohnschein at gmx.de
Mon Mar 20 13:40:06 CET 2006


I found the mistake! I had to readout the RXFDB!! I configured the
board_serial.c this way:

int serial_tstc( void )
{
	unsigned int unRegCache;
	 
	
	if ( cCharsAvailable )
		return 1;

	unRegCache = *get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE );
	if ( unRegCache & NS9750_SER_STAT_A_RBC ) {
		*get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE ) =
			NS9750_SER_STAT_A_RXFDB_FULL;
		*get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE ) =
			NS9750_SER_STAT_A_RBC;
		unRegCache = *get_ser_reg_addr_channel( NS9750_SER_STAT_A,
							CONSOLE );
	}

	if ( unRegCache & NS9750_SER_STAT_A_RRDY ) {
		cCharsAvailable = (unRegCache & NS9750_SER_STAT_A_RXFDB_FULL)>>20;
		if ( !cCharsAvailable )
			cCharsAvailable = 4;

		unCharCache = *get_ser_reg_addr_channel( NS9750_SER_FIFO,
							 CONSOLE );
		return 1;
	}

I changed NS9750_SER_STAT_A_RXFDB_MA to NS9750_SER_STAT_A_RXFDB_FULL!!

--
View this message in context: http://www.nabble.com/IO-serial-problem-t1297565.html#a3492558
Sent from the Uboot - Users forum at Nabble.com.





More information about the U-Boot mailing list