source:
rtems/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
@
2cb549f
Last change on this file since 2cb549f was 2cb549f, checked in by Till Straumann <strauman@…>, on 12/01/07 at 21:32:49 | |
---|---|
|
|
File size: 1.0 KB |
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 | #include <libcpu/cpuIdent.h> |
21 | |
22 | static rtems_irq_connect_data clockIrqData; |
23 | static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, |
24 | clockIsr, |
25 | NULL, |
26 | (rtems_irq_enable)clockOn, |
27 | (rtems_irq_disable)clockOff, |
28 | (rtems_irq_is_enabled) clockIsOn}; |
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 | if ( ppc_cpu_is_bookE() ) |
37 | clockIrqData.hdl = clockIsrBookE; |
38 | |
39 | return BSP_install_rtems_irq_handler (&clockIrqData); |
40 | } |
Note: See TracBrowser
for help on using the repository browser.