[rtems commit] powerpc/tqm8xx: Fix warnings

Joel Sherrill joel at rtems.org
Mon Oct 13 16:27:40 UTC 2014


Module:    rtems
Branch:    master
Commit:    ee0ea5bfcd77e31e8ea2a4d7bd018c685fbec421
Changeset: http://git.rtems.org/rtems/commit/?id=ee0ea5bfcd77e31e8ea2a4d7bd018c685fbec421

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 12 13:57:28 2014 -0500

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 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.Doerfler at embedded-brains.de>         |
-|                    Copyright (c) 2008                           |
-|                    Embedded Brains GmbH                         |
-|                    Obere Lagerstr. 30                           |
-|                    D-82178 Puchheim                             |
-|                    Germany                                      |
-|                    rtems at 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.Doerfler at embedded-brains.de>
+ *    Copyright (c) 2008
+ *    Embedded Brains GmbH
+ *    Obere Lagerstr. 30
+ *    D-82178 Puchheim
+ *    Germany
+ *    rtems at 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



More information about the vc mailing list