[rtems commit] mpc8260ads/start/bspstart.c: Fix unused function warning
Joel Sherrill
joel at rtems.org
Fri Oct 19 18:03:55 UTC 2018
Module: rtems
Branch: master
Commit: 28fb5b71f8bbbf70809a8f07db723e379dd53360
Changeset: http://git.rtems.org/rtems/commit/?id=28fb5b71f8bbbf70809a8f07db723e379dd53360
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Sep 5 18:02:30 2018 -0500
mpc8260ads/start/bspstart.c: Fix unused function warning
---
bsps/powerpc/mpc8260ads/start/bspstart.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bsps/powerpc/mpc8260ads/start/bspstart.c b/bsps/powerpc/mpc8260ads/start/bspstart.c
index 11aaece..2526cf0 100644
--- a/bsps/powerpc/mpc8260ads/start/bspstart.c
+++ b/bsps/powerpc/mpc8260ads/start/bspstart.c
@@ -69,12 +69,15 @@ bool bsp_serial_xon_xoff;
bool bsp_serial_cts_rts;
uint32_t bsp_serial_rate;
+/* leave in case needed in future */
+#if 0
static void _BSP_GPLED0_on(void)
{
BCSR *csr;
csr = (BCSR *)(m8260.memc[1].br & 0xFFFF8000);
csr->bcsr0 &= ~GP0_LED; /* Turn on GP0 LED */
}
+#endif
static void _BSP_GPLED0_off(void)
{
@@ -83,12 +86,15 @@ static void _BSP_GPLED0_off(void)
csr->bcsr0 |= GP0_LED; /* Turn off GP0 LED */
}
+/* leave in case needed in future */
+#if 0
static void _BSP_GPLED1_on(void)
{
BCSR *csr;
csr = (BCSR *)(m8260.memc[1].br & 0xFFFF8000);
csr->bcsr0 &= ~GP1_LED; /* Turn on GP1 LED */
}
+#endif
static void _BSP_GPLED1_off(void)
{
More information about the vc
mailing list