source: rtems/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c @ 116633f

Last change on this file since 116633f was 116633f, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:45:20

2003-09-04 Joel Sherrill <joel@…>

  • bootloader/bootldr.h, bootloader/em86.c, bootloader/em86real.S, bootloader/exception.S, bootloader/head.S, bootloader/lib.c, bootloader/misc.c, bootloader/mm.c, bootloader/pci.c, clock/p_clock.c, console/console.c, console/consoleIo.h, console/inch.c, console/keyboard.h, console/polled_io.c, include/bsp.h, irq/i8259.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/pci.c, residual/residual.c, start/start.S, startup/bspstart.c, vectors/vectors.h, vectors/vectors_init.c: URL for license changed.
  • Property mode set to 100644
File size: 893 bytes
Line 
1/*
2 *  Clock Tick interrupt conexion code.
3 *
4 *  COPYRIGHT (c) 1989-1997.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may in
8 *  the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  Modified to support the MPC750.
12 *  Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr
13 *
14 *  $Id$
15 */
16
17#include <bsp.h>
18#include <bsp/irq.h>
19#include <libcpu/c_clock.h>
20
21static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
22                                              clockIsr,
23                                              (rtems_irq_enable)clockOn,
24                                              (rtems_irq_disable)clockOff,
25                                              (rtems_irq_is_enabled) clockIsOn};
26                                             
27
28int BSP_disconnect_clock_handler (void)
29{
30  return BSP_remove_rtems_irq_handler (&clockIrqData);
31}
32
33int BSP_connect_clock_handler (void)
34{
35  return BSP_install_rtems_irq_handler (&clockIrqData);
36}
Note: See TracBrowser for help on using the repository browser.