Changeset 64d72e8 in rtems


Ignore:
Timestamp:
Jul 17, 2012, 3:51:46 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d740e60
Parents:
dafacfa7
git-author:
Sebastian Huber <sebastian.huber@…> (07/17/12 15:51:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:46:14)
Message:

bsp/mpc55xx: Add ESCI_C and ESCI_D support

Location:
c/src/lib/libbsp/powerpc/mpc55xxevb/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c

    rdafacfa7 r64d72e8  
    11/*
    2  * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    1919CONSOLE_GENERIC_INFO_TABLE = {
    2020  #ifdef MPC55XX_HAS_ESCI
    21     CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 0, &mpc55xx_esci_callbacks, "/dev/ttyS0"),
    22     CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 1, &mpc55xx_esci_callbacks, "/dev/ttyS1")
     21    CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 0, &mpc55xx_esci_callbacks, "/dev/ttyS0")
     22    #ifdef ESCI_B
     23      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 1, &mpc55xx_esci_callbacks, "/dev/ttyS1")
     24    #endif
     25    #ifdef ESCI_C
     26      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 2, &mpc55xx_esci_callbacks, "/dev/ttyS2")
     27    #endif
     28    #ifdef ESCI_D
     29      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 3, &mpc55xx_esci_callbacks, "/dev/ttyS3")
     30    #endif
    2331  #endif
    2432  #ifdef MPC55XX_HAS_LINFLEX
  • c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c

    rdafacfa7 r64d72e8  
    66
    77/*
    8  * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
     8 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
    99 *
    1010 *  embedded brains GmbH
     
    3030    .regs = &ESCI_A,
    3131    .irq = MPC55XX_IRQ_ESCI(0)
    32   }, {
    33     .regs = &ESCI_B,
    34     .irq = MPC55XX_IRQ_ESCI(1)
    35   }
     32  }
     33  #ifdef ESCI_B
     34    , {
     35      .regs = &ESCI_B,
     36      .irq = MPC55XX_IRQ_ESCI(1)
     37    }
     38  #endif
     39  #ifdef ESCI_C
     40    , {
     41      .regs = &ESCI_C,
     42      .irq = MPC55XX_IRQ_ESCI(2)
     43    }
     44  #endif
     45  #ifdef ESCI_D
     46    , {
     47      .regs = &ESCI_D,
     48      .irq = MPC55XX_IRQ_ESCI(3)
     49    }
     50  #endif
    3651};
    3752
Note: See TracChangeset for help on using the changeset viewer.