source: rtems/bsps/powerpc/mpc55xxevb/console/console-config.c @ 8f8ccee

5
Last change on this file since 8f8ccee was d7d66d7, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/18 at 04:28:01

bsps: Move console drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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.