From ee0ea5bfcd77e31e8ea2a4d7bd018c685fbec421 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 12 Oct 2014 13:57:28 -0500 Subject: powerpc/tqm8xx: Fix warnings --- 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 c3154fd967..2ea9f45f86 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 #include #include + 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 d7297a1b4b..7c6f0e6b6f 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 | -| Copyright (c) 2008 | -| Embedded Brains GmbH | -| Obere Lagerstr. 30 | -| D-82178 Puchheim | -| Germany | -| rtems@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 + * Copyright (c) 2008 + * Embedded Brains GmbH + * Obere Lagerstr. 30 + * D-82178 Puchheim + * Germany + * rtems@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 -- cgit v1.2.3