diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-11-23 22:20:44 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-11-23 22:20:44 +0000 |
commit | 279eb2c2e06a9803021d8fd752f0de575796f1ae (patch) | |
tree | bda5bb60ea9027918675ee9fbaa4a3bb7035215f /c/src/lib/libbsp/powerpc/eth_comm/clock/p_clock.c | |
parent | Add PR617 as fixed by conversion to new exceptions. (diff) | |
download | rtems-279eb2c2e06a9803021d8fd752f0de575796f1ae.tar.bz2 |
2004-11-23 Joel Sherrill <joel@OARcorp.com>
* eth_comm/.cvsignore, eth_comm/ChangeLog, eth_comm/Makefile.am,
eth_comm/README, eth_comm/bsp_specs, eth_comm/configure.ac,
eth_comm/times, eth_comm/canbus/canbus.c, eth_comm/clock/p_clock.c,
eth_comm/console/console.c, eth_comm/include/.cvsignore,
eth_comm/include/8xx_immap.h, eth_comm/include/bsp.h,
eth_comm/include/canbus.h, eth_comm/include/commproc.h,
eth_comm/include/coverhd.h, eth_comm/include/info.h,
eth_comm/include/tm27.h, eth_comm/irq/irq.c, eth_comm/irq/irq.h,
eth_comm/irq/irq_asm.S, eth_comm/irq/irq_init.c,
eth_comm/network/README, eth_comm/network/network.c,
eth_comm/start/start.S, eth_comm/startup/bspstart.c,
eth_comm/startup/cpuinit.c, eth_comm/startup/linkcmds,
eth_comm/startup/mmutlbtab.c, eth_comm/vectors/vectors.S,
eth_comm/vectors/vectors.h, eth_comm/vectors/vectors_init.c,
eth_comm/wrapup/.cvsignore, eth_comm/wrapup/Makefile.am: Removed.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/eth_comm/clock/p_clock.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/clock/p_clock.c b/c/src/lib/libbsp/powerpc/eth_comm/clock/p_clock.c deleted file mode 100644 index b4bf7ca93e..0000000000 --- a/c/src/lib/libbsp/powerpc/eth_comm/clock/p_clock.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Clock Tick interrupt conexion code. - * - * COPYRIGHT (c) 1989-1997. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * Modified to support the MPC750. - * Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr - * - * $Id$ - */ - -#include <bsp.h> -#include <bsp/irq.h> -#include <rtems/bspIo.h> - -extern void clockOn(void*); -extern void clockOff (void*); -extern int clockIsOn(void*); -extern void Clock_isr(); - -static rtems_irq_connect_data clockIrqData = {BSP_PERIODIC_TIMER, - (rtems_irq_hdl)Clock_isr, - (rtems_irq_enable)clockOn, - (rtems_irq_disable)clockOff, - (rtems_irq_is_enabled)clockIsOn}; - -int BSP_get_clock_irq_level() -{ - /* - * Caution : if you change this, you must change the - * definition of BSP_PERIODIC_TIMER accordingly - */ - return 6; -} - -int BSP_disconnect_clock_handler (void) -{ - if (!BSP_get_current_rtems_irq_handler(&clockIrqData)) { - printk("Unable to stop system clock\n"); - rtems_fatal_error_occurred(1); - } - return BSP_remove_rtems_irq_handler (&clockIrqData); -} - -int BSP_connect_clock_handler (rtems_irq_hdl hdl) -{ - if (!BSP_get_current_rtems_irq_handler(&clockIrqData)) { - printk("Unable to get system clock handler\n"); - rtems_fatal_error_occurred(1); - } - if (!BSP_remove_rtems_irq_handler (&clockIrqData)) { - printk("Unable to remove current system clock handler\n"); - rtems_fatal_error_occurred(1); - } - /* - * Reinit structure - */ - clockIrqData.name = BSP_PERIODIC_TIMER; - clockIrqData.hdl = (rtems_irq_hdl) hdl; - clockIrqData.on = (rtems_irq_enable)clockOn; - clockIrqData.off = (rtems_irq_enable)clockOff; - clockIrqData.isOn = (rtems_irq_is_enabled)clockIsOn; - - return BSP_install_rtems_irq_handler (&clockIrqData); -} |