mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-29 03:11:45 +08:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user