From 7632906fc290b652416ab59eb5fb49356c064ed6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Apr 2018 06:35:52 +0200 Subject: bsps: Move clock drivers to bsps This patch is a part of the BSP source reorganization. Update #3285. --- c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c | 58 ------------------------- 1 file changed, 58 deletions(-) delete mode 100644 c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c (limited to 'c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c') diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c b/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c deleted file mode 100644 index 4ee201a3b2..0000000000 --- a/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c +++ /dev/null @@ -1,58 +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.org/license/LICENSE. - * - * Modified to support the MPC750. - * Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr - */ - -#include -#include -#include - -extern void clockOn(void*); -extern void clockOff (void*); -extern int clockIsOn(void*); -extern void Clock_isr(void*); - -static void BSP_clock_hdl(void * arg) -{ - Clock_isr(arg); -} - -int BSP_disconnect_clock_handler (void) -{ - rtems_status_code sc; - - clockOff(NULL); - /* - * remove interrupt handler - */ - sc = rtems_interrupt_handler_remove(BSP_PERIODIC_TIMER, - BSP_clock_hdl,NULL); - - return sc == RTEMS_SUCCESSFUL; -} - -int BSP_connect_clock_handler (rtems_irq_hdl hdl) -{ - rtems_status_code sc; - /* - * install interrupt handler - */ - sc = rtems_interrupt_handler_install(BSP_PERIODIC_TIMER, - "PIT clock",0, - BSP_clock_hdl,NULL); - if (sc == RTEMS_SUCCESSFUL) { - clockOn(NULL); - } - return sc == RTEMS_SUCCESSFUL; -} -- cgit v1.2.3