--- c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c | 9 +++-- c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h | 48 +++++++++++-------------- 2 files changed, 27 insertions(+), 30 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c b/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c index c3154fd..2ea9f45 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c @@ -1,6 +1,8 @@ /* * Clock Tick interrupt conexion code. - * + */ + +/* * COPYRIGHT (c) 1989-1997. * On-Line Applications Research Corporation (OAR). * @@ -15,17 +17,18 @@ #include <bsp.h> #include <bsp/irq-generic.h> #include <rtems/bspIo.h> + extern void clockOn(void*); extern void clockOff (void*); extern int clockIsOn(void*); extern void Clock_isr(void*); -void BSP_clock_hdl(void * arg) +static void BSP_clock_hdl(void * arg) { Clock_isr(arg); } -int BSP_get_clock_irq_level(void) +static int BSP_get_clock_irq_level(void) { /* * Caution : if you change this, you must change the diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h b/c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h index d7297a1..7c6f0e6 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h @@ -1,31 +1,17 @@ -/*===============================================================*\ -| Project: RTEMS TQM8xx BSP | -+-----------------------------------------------------------------+ -| This file has been adapted to MPC8xx by | -| Thomas Doerfler <thomas.doerf...@embedded-brains.de> | -| Copyright (c) 2008 | -| Embedded Brains GmbH | -| Obere Lagerstr. 30 | -| D-82178 Puchheim | -| Germany | -| rt...@embedded-brains.de | -| | -| See the other copyright notice below for the original parts. | -+-----------------------------------------------------------------+ -| The license and distribution terms for this file may be | -| found in the file LICENSE in this distribution or at | -| | -| http://www.rtems.org/license/LICENSE. | -| | -+-----------------------------------------------------------------+ -| this file contains the console driver | -\*===============================================================*/ -/* derived from MBX8xx BSP: */ -/* bsp.h - * +/* + * RTEMS TQM8xx BSP * This include file contains all board IO definitions. - * - * This file includes definitions for the MBX860 and MBX821. + */ + +/* + * This file has been adapted to MPC8xx by: + * Thomas Doerfler <thomas.doerf...@embedded-brains.de> + * Copyright (c) 2008 + * Embedded Brains GmbH + * Obere Lagerstr. 30 + * D-82178 Puchheim + * Germany + * rt...@embedded-brains.de * * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). @@ -146,13 +132,21 @@ extern int rtems_scc_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, #define PGHPLUS_PB_SPI_EEP_CE_MSK (1<< 0) #define PGHPLUS_PB_SPI_DISP4_RS_MSK (1<<15) #define PGHPLUS_PB_SPI_DISP4_CE_MSK (1<<14) + /* * our (internal) bus frequency */ extern uint32_t BSP_bus_frequency; +/* + * Interfaces to required Clock Driver support methods + */ +int BSP_disconnect_clock_handler(void); +int BSP_connect_clock_handler (rtems_irq_hdl); + #ifdef __cplusplus } #endif + #endif #endif -- 1.9.3 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel