forked from Imagelibrary/rtems
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* clock_driver_stub.c, clockdrv_shell.c: Use common clock driver template and eliminate all fast idle code specific to this BSP. This eliminates a fair amount of code in the BSP clock driver and bsp_startup. The LEON3 has to do a scan of the AMBA bus to find the timer so I added the new hook Clock_driver_support_find_timer to support this. In general, there was some clean up to the file headers of various files.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
2006-11-17 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* clock_driver_stub.c, clockdrv_shell.c: Use common clock driver
|
||||||
|
template and eliminate all fast idle code specific to this BSP. This
|
||||||
|
eliminates a fair amount of code in the BSP clock driver and
|
||||||
|
bsp_startup. The LEON3 has to do a scan of the AMBA bus to find the
|
||||||
|
timer so I added the new hook Clock_driver_support_find_timer to
|
||||||
|
support this. In general, there was some clean up to the file headers
|
||||||
|
of various files.
|
||||||
|
|
||||||
2006-11-15 Joel Sherrill <joel@OARcorp.com>
|
2006-11-15 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* bootcard.c: Merge c_rtems_main() into boot_card(). This eliminated a
|
* bootcard.c: Merge c_rtems_main() into boot_card(). This eliminated a
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
* Since there is no clock source on the simulator, all we do is
|
* Since there is no clock source on the simulator, all we do is
|
||||||
* make sure it will build.
|
* make sure it will build.
|
||||||
*
|
*
|
||||||
|
* COPYRIGHT (c) 1989-2006.
|
||||||
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Clock Tick Device Driver Shell
|
* Clock Tick Device Driver Shell
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-1999.
|
* COPYRIGHT (c) 1989-2006.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -20,6 +20,14 @@
|
|||||||
#error "clockdrv_shell.c: fast idle and N ISRs per tick is not supported"
|
#error "clockdrv_shell.c: fast idle and N ISRs per tick is not supported"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This method is rarely used so default it.
|
||||||
|
*/
|
||||||
|
#ifndef Clock_driver_support_find_timer
|
||||||
|
#define Clock_driver_support_find_timer()
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ISRs until next clock tick
|
* ISRs until next clock tick
|
||||||
*/
|
*/
|
||||||
@@ -134,16 +142,19 @@ void Install_clock(
|
|||||||
{
|
{
|
||||||
Clock_driver_ticks = 0;
|
Clock_driver_ticks = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Find timer -- some BSPs search buses for hardware timer
|
||||||
|
*/
|
||||||
|
Clock_driver_support_find_timer();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Install vector
|
* Install vector
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Clock_driver_support_install_isr( clock_isr, Old_ticker );
|
Clock_driver_support_install_isr( clock_isr, Old_ticker );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now initialize the hardware that is the source of the tick ISR.
|
* Now initialize the hardware that is the source of the tick ISR.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Clock_driver_support_initialize_hardware();
|
Clock_driver_support_initialize_hardware();
|
||||||
|
|
||||||
atexit( Clock_exit );
|
atexit( Clock_exit );
|
||||||
|
|||||||
Reference in New Issue
Block a user