source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp.h>
16#include <bsp/console-generic.h>
17#include <bsp/console-esci.h>
18#include <bsp/console-linflex.h>
19
20CONSOLE_GENERIC_INFO_TABLE = {
21  #ifdef MPC55XX_HAS_ESCI
22    CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 0, &mpc55xx_esci_callbacks, "/dev/ttyS0")
23    #ifdef ESCI_B
24      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 1, &mpc55xx_esci_callbacks, "/dev/ttyS1")
25    #endif
26    #ifdef ESCI_C
27      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 2, &mpc55xx_esci_callbacks, "/dev/ttyS2")
28    #endif
29    #ifdef ESCI_D
30      , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 3, &mpc55xx_esci_callbacks, "/dev/ttyS3")
31    #endif
32  #endif
33  #ifdef MPC55XX_HAS_LINFLEX
34    CONSOLE_GENERIC_INFO(mpc55xx_linflex_devices + 0, &mpc55xx_linflex_callbacks, "/dev/ttyS0"),
35    CONSOLE_GENERIC_INFO(mpc55xx_linflex_devices + 1, &mpc55xx_linflex_callbacks, "/dev/ttyS1")
36  #endif
37};
38
39CONSOLE_GENERIC_INFO_COUNT;
40
41CONSOLE_GENERIC_MINOR(MPC55XX_CONSOLE_MINOR);
Note: See TracBrowser for help on using the repository browser.