4.104.114.84.95
Last change
on this file since d8999b7 was
d8999b7,
checked in by Jennifer Averett <Jennifer.Averett@…>, on 05/17/05 at 15:06:22
|
2005-05-17 Jennifer Averett <jennifer.averett@…>
- clock/p_clock.c, irq/i8259.c, irq/irq.c, irq/irq.h: Modified to use
rtems/irq.h.
|
-
Property mode set to
100644
|
File size:
940 bytes
|
Rev | Line | |
---|
[acc25ee] | 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 |
---|
[e831de8] | 9 | * http://www.rtems.com/license/LICENSE. |
---|
[acc25ee] | 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 | |
---|
[d8999b7] | 21 | static rtems_irq_connect_data clockIrqData; |
---|
| 22 | /* |
---|
| 23 | = {BSP_DECREMENTER, |
---|
[acc25ee] | 24 | clockIsr, |
---|
[2d0d029] | 25 | NULL, |
---|
[acc25ee] | 26 | (rtems_irq_enable)clockOn, |
---|
| 27 | (rtems_irq_disable)clockOff, |
---|
| 28 | (rtems_irq_is_enabled) clockIsOn}; |
---|
[d8999b7] | 29 | */ |
---|
[acc25ee] | 30 | int BSP_disconnect_clock_handler (void) |
---|
| 31 | { |
---|
| 32 | return BSP_remove_rtems_irq_handler (&clockIrqData); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | int BSP_connect_clock_handler (void) |
---|
| 36 | { |
---|
| 37 | return BSP_install_rtems_irq_handler (&clockIrqData); |
---|
| 38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.