OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [shared/] [clock/] [p_clock.c] - Blame information for rev 593

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: p_clock.c,v 1.2 2001-09-27 12:01:06 chris Exp $
16
 */
17
 
18
#include <bsp.h>
19
#include <bsp/irq.h>
20
#include <libcpu/c_clock.h>
21
 
22
static 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
 
29
int BSP_disconnect_clock_handler (void)
30
{
31
  return BSP_remove_rtems_irq_handler (&clockIrqData);
32
}
33
 
34
int BSP_connect_clock_handler (void)
35
{
36
  return BSP_install_rtems_irq_handler (&clockIrqData);
37
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.