2001-01-03 Joel Sherrill <joel@OARcorp.com>

* clockdrv_shell.c: Added fast idle mode which is enabled by defining
	CLOCK_DRIVER_USE_FAST_IDLE.
	* console-polled.c: Added console_initialize_hardware() hook.
This commit is contained in:
Joel Sherrill
2001-01-03 16:44:17 +00:00
parent 60ab53a201
commit e182c62027
3 changed files with 28 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2001-01-03 Joel Sherrill <joel@OARcorp.com>
* clockdrv_shell.c: Added fast idle mode which is enabled by defining
CLOCK_DRIVER_USE_FAST_IDLE.
* console-polled.c: Added console_initialize_hardware() hook.
2000-12-01 Joel Sherrill <joel@OARcorp.com>
* console-polled.c: Remove warnings.
+14 -1
View File
@@ -51,8 +51,20 @@ rtems_isr Clock_isr(
rtems_vector_number vector
)
{
#ifdef CLOCK_DRIVER_USE_FAST_IDLE
do {
Clock_driver_ticks += 1;
rtems_clock_tick();
} while ( _Thread_Executing == _Thread_Idle &&
_Thread_Heir == _Thread_Executing)
Clock_driver_support_at_tick();
return;
#else
/*
* Do the hardware specific per-tick action.
*
* The counter/timer may or may not be set to automatically reload.
*/
Clock_driver_support_at_tick();
@@ -64,13 +76,14 @@ rtems_isr Clock_isr(
Clock_driver_ticks += 1;
/*
* Real Time Clock counter/timer is set to automatically reload.
*/
#ifndef CLOCK_DRIVER_ISRS_ARE_ONE_MILLISECOND
rtems_clock_tick();
#else
#error "Clock driver shell: Does not currently support counting mseconds."
#endif
#endif
}
+8
View File
@@ -29,6 +29,8 @@ int console_inbyte_nonblocking(
int port
);
void console_initialize_hardware(void);
/*
* Console Termios Support Entry Points
*
@@ -65,6 +67,12 @@ rtems_device_driver console_initialize(
rtems_termios_initialize();
/*
* Make sure the hardware is initialized.
*/
console_initialize_hardware();
/*
* Register Device Names
*/