[PATCH 18/34] m68k/mcf52235: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 20 20:34:20 UTC 2014


---
 c/src/lib/libbsp/m68k/mcf52235/include/bsp.h       | 5 +++++
 c/src/lib/libbsp/m68k/mcf52235/startup/init52235.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h b/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
index 1e6cb95..fd3f851 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
@@ -63,6 +63,11 @@ rtems_isr_entry set_vector(
 #define UART2_IRQ_LEVEL     3
 #define UART2_IRQ_PRIORITY  5
 
+/*
+ * Prototypes for BSP methods which cross file boundaries
+ */
+void Init52235(void);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/c/src/lib/libbsp/m68k/mcf52235/startup/init52235.c b/c/src/lib/libbsp/m68k/mcf52235/startup/init52235.c
index 3769b75..d54b624 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/startup/init52235.c
+++ b/c/src/lib/libbsp/m68k/mcf52235/startup/init52235.c
@@ -4,6 +4,7 @@
  *  functions can be called from here.
  */
 
+#include <bsp.h>
 #include <bsp/bootcard.h>
 
 extern void _wr_vbr(uint32_t);
-- 
1.9.3




More information about the devel mailing list