diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 17:49:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 17:49:56 +0000 |
commit | 0fab6dded87c36ae119a14f773b636aec3063d4b (patch) | |
tree | 16aed090542b7314b846cf398255396eb9fc0b12 /c/src/lib/libbsp/powerpc/motorola_powerpc/clock/p_clock.c | |
parent | Fixed typo. (diff) | |
download | rtems-0fab6dded87c36ae119a14f773b636aec3063d4b.tar.bz2 |
Patch from Eric Valette <valette@crf.canon.fr> so this will build
independently of a BSP.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/motorola_powerpc/clock/p_clock.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/clock/p_clock.c b/c/src/lib/libbsp/powerpc/motorola_powerpc/clock/p_clock.c new file mode 100644 index 0000000000..5de55190d8 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/clock/p_clock.c @@ -0,0 +1,37 @@ +/* + * Clock Tick interrupt conexion code. + * + * COPYRIGHT (c) 1989-1997. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may in + * the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * Modified to support the MPC750. + * Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr + * + * $Id$ + */ + +#include <bsp.h> +#include <bsp/irq.h> +#include <libcpu/c_clock.h> + +static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, + clockIsr, + (rtems_irq_enable)clockOn, + (rtems_irq_disable)clockOff, + (rtems_irq_is_enabled) clockIsOn}; + + +int BSP_disconnect_clock_handler (void) +{ + return BSP_remove_rtems_irq_handler (&clockIrqData); +} + +int BSP_connect_clock_handler (void) +{ + return BSP_install_rtems_irq_handler (&clockIrqData); +} |