Changeset 74c4facd in rtems for c/src/lib/libbsp/arm/tms570


Ignore:
Timestamp:
Apr 14, 2015, 3:08:37 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
cb02e8ac
Parents:
644caa20
git-author:
Joel Sherrill <joel.sherrill@…> (04/14/15 15:08:37)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/15/15 15:02:58)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/tms570/startup/bspreset.c

    r644caa20 r74c4facd  
    1818
    1919#include <bsp.h>
     20#include <bsp/bootcard.h>
    2021#include <bsp/tms570.h>
    2122#include <bsp/start.h>
     
    2324static void handle_esm_errors(uint32_t esm_irq_channel)
    2425{
    25   /* ESMR3 errors don't generate interrupts. */
    26   if (esm_irq_channel < 0x20u) {
    27     ESMSR1 = 1 << esm_irq_channel;
    28   } else if (esm_irq_channel < 0x40u) {
    29     ESMSR2 = 1 << (esm_irq_channel - 32u);
    30   } else if (esm_irq_channel < 0x60u) {
    31     ESMSR4 = 1 << (esm_irq_channel - 64u);
    32   }
     26   /* ESMR3 errors don't generate interrupts. */
     27   if (esm_irq_channel < 0x20u) {
     28     ESMSR1 = 1 << esm_irq_channel;
     29   } else if (esm_irq_channel < 0x40u) {
     30     ESMSR2 = 1 << (esm_irq_channel - 32u);
     31   } else if (esm_irq_channel < 0x60u) {
     32     ESMSR4 = 1 << (esm_irq_channel - 64u);
     33   }
    3334}
    3435
    3536void bsp_reset(void)
    3637{
    37   uint32_t esm_irq_channel = ESMIOFFHR - 1;
     38   uint32_t esm_irq_channel = ESMIOFFHR - 1;
    3839
    39   if (esm_irq_channel) {
    40     handle_esm_errors(esm_irq_channel);
    41   }
     40   if (esm_irq_channel) {
     41     handle_esm_errors(esm_irq_channel);
     42   }
    4243
    43   /* Reset the board */
    44   SYSECR = SYSECR_RESET;
     44   /* Reset the board */
     45   SYSECR = SYSECR_RESET;
    4546}
Note: See TracChangeset for help on using the changeset viewer.