summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-12 13:57:28 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:33:28 -0500
commitee0ea5bfcd77e31e8ea2a4d7bd018c685fbec421 (patch)
tree03f3e7dd0c16d792f5e0b72a9ef0537f0d946c74
parentpowerpc/shared/console: Fix warnings (diff)
downloadrtems-ee0ea5bfcd77e31e8ea2a4d7bd018c685fbec421.tar.bz2
powerpc/tqm8xx: Fix warnings
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/clock/p_clock.c9
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h48
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 <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 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 <Thomas.Doerfler@embedded-brains.de> |
-| 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 <Thomas.Doerfler@embedded-brains.de>
+ * 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