2000-10-18 Joel Sherrill <joel@OARcorp.com>

* console/console.c: Added BSP dependent routine
	mbx8xx_console_use_maximum_buffer_size() required by mbx8xx
	console-generic code.  This avoids libcpu use of bsp.h.
This commit is contained in:
Joel Sherrill
2000-10-18 15:47:26 +00:00
parent 8c4970175d
commit 1fc2292d35
2 changed files with 27 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2000-10-18 Joel Sherrill <joel@OARcorp.com>
* console/console.c: Added BSP dependent routine
mbx8xx_console_use_maximum_buffer_size() required by mbx8xx
console-generic code. This avoids libcpu use of bsp.h.
2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/Makefile.am, network/Makefile.am, startup/Makefile.am,

View File

@@ -881,3 +881,24 @@ rtems_device_driver console_control(
#endif
}
/*
* Support routine for console-generic
*/
int mbx8xx_console_use_maximum_buffer_size(void)
{
#if NVRAM_CONFIGURE == 1
if ( (nvram->console_mode & 0x06) == 0x02 )
return 1;
else
return 0;
#else
#if UARTS_IO_MODE == 1
return 1;
#else
return 0;
#endif
#endif
}