[PATCH 5/6] mpc8260ads/start/bspstart.c: Fix unused function warning

Joel Sherrill joel at rtems.org
Mon Oct 8 13:26:46 UTC 2018


---
 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)
 {
-- 
1.8.3.1




More information about the devel mailing list