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

4.104.114.84.95
Last change on this file since df49c60 was acc25ee, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 2, 1999 at 2:31:19 PM

Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@…>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.

  • Property mode set to 100644
File size: 947 bytes
Line 
1/*
2 *  Clock Tick interrupt conexion code.
3 *
4 *  COPYRIGHT (c) 1989-1997.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may in
9 *  the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  Modified to support the MPC750.
13 *  Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr
14 *
15 *  $Id$
16 */
17
18#include <bsp.h>
19#include <bsp/irq.h>
20#include <libcpu/c_clock.h>
21
22static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
23                                              clockIsr,
24                                              (rtems_irq_enable)clockOn,
25                                              (rtems_irq_disable)clockOff,
26                                              (rtems_irq_is_enabled) clockIsOn};
27                                             
28
29int BSP_disconnect_clock_handler (void)
30{
31  return BSP_remove_rtems_irq_handler (&clockIrqData);
32}
33
34int BSP_connect_clock_handler (void)
35{
36  return BSP_install_rtems_irq_handler (&clockIrqData);
37}
Note: See TracBrowser for help on using the repository browser.