[rtems commit] tms570/startup/bspreset.c: Add include <bsp/bootcard.h> to fix warning

Joel Sherril joel at rtems.org
Wed Apr 15 15:03:10 UTC 2015


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Apr 14 10:08:37 2015 -0500

tms570/startup/bspreset.c: Add include <bsp/bootcard.h> to fix warning

---

 c/src/lib/libbsp/arm/tms570/startup/bspreset.c | 29 +++++++++++++-------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/c/src/lib/libbsp/arm/tms570/startup/bspreset.c b/c/src/lib/libbsp/arm/tms570/startup/bspreset.c
index a4b6647..3efb590 100644
--- a/c/src/lib/libbsp/arm/tms570/startup/bspreset.c
+++ b/c/src/lib/libbsp/arm/tms570/startup/bspreset.c
@@ -17,29 +17,30 @@
  */
 
 #include <bsp.h>
+#include <bsp/bootcard.h>
 #include <bsp/tms570.h>
 #include <bsp/start.h>
 
 static void handle_esm_errors(uint32_t esm_irq_channel)
 {
-  /* ESMR3 errors don't generate interrupts. */
-  if (esm_irq_channel < 0x20u) {
-    ESMSR1 = 1 << esm_irq_channel;
-  } else if (esm_irq_channel < 0x40u) {
-    ESMSR2 = 1 << (esm_irq_channel - 32u);
-  } else if (esm_irq_channel < 0x60u) {
-    ESMSR4 = 1 << (esm_irq_channel - 64u);
-  }
+   /* ESMR3 errors don't generate interrupts. */
+   if (esm_irq_channel < 0x20u) {
+     ESMSR1 = 1 << esm_irq_channel;
+   } else if (esm_irq_channel < 0x40u) {
+     ESMSR2 = 1 << (esm_irq_channel - 32u);
+   } else if (esm_irq_channel < 0x60u) {
+     ESMSR4 = 1 << (esm_irq_channel - 64u);
+   }
 }
 
 void bsp_reset(void)
 {
-  uint32_t esm_irq_channel = ESMIOFFHR - 1;
+   uint32_t esm_irq_channel = ESMIOFFHR - 1;
 
-  if (esm_irq_channel) {
-    handle_esm_errors(esm_irq_channel);
-  }
+   if (esm_irq_channel) {
+     handle_esm_errors(esm_irq_channel);
+   }
 
-  /* Reset the board */
-  SYSECR = SYSECR_RESET;
+   /* Reset the board */
+   SYSECR = SYSECR_RESET;
 }



More information about the vc mailing list