source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/console/console_reserve_resources.c @ 79f2e19

4.104.114.84.95
Last change on this file since 79f2e19 was 79f2e19, checked in by Joel Sherrill <joel.sherrill@…>, on 11/30/99 at 13:58:59

Split from console.c to eliminate dependencies.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  console.c  -- console I/O package
3 *
4 *  Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
5 *
6 * This code is based on the pc386 BSP console.c so the following
7 * copyright also applies :
8 *
9 * (C) Copyright 1997 -
10 * - NavIST Group - Real-Time Distributed Systems and Industrial Automation
11 *
12 * http://pandora.ist.utl.pt
13 *
14 * Instituto Superior Tecnico * Lisboa * PORTUGAL
15 *  The license and distribution terms for this file may be
16 *  found in found in the file LICENSE in this distribution or at
17 *  http://www.OARcorp.com/rtems/license.html.
18 *
19 * $Id$
20 */
21 
22#include <stdlib.h>
23#include <assert.h>
24#include <stdlib.h>
25
26#undef __assert
27void __assert (const char *file, int line, const char *msg);
28extern int close(int fd);
29
30#include <bsp.h>
31#include <bsp/irq.h>
32#include <rtems/libio.h>
33#include <termios.h>
34#include <bsp/uart.h>
35#include <bsp/consoleIo.h>
36
37/* Definitions for BSPConsolePort */
38#define BSP_CONSOLE_PORT_CONSOLE (-1)
39#define BSP_CONSOLE_PORT_COM1    (BSP_UART_COM1)
40#define BSP_CONSOLE_PORT_COM2    (BSP_UART_COM2)
41/*
42 * Possible value for console input/output :
43 *      BSP_CONSOLE_PORT_CONSOLE
44 *      BSP_UART_COM1
45 *      BSP_UART_COM2
46 */
47
48int BSPConsolePort = BSP_UART_COM1;
49
50/* int BSPConsolePort = BSP_UART_COM2;  */
51int BSPBaseBaud    = 115200;
52
53void console_reserve_resources(rtems_configuration_table *conf)
54{
55    if(BSPConsolePort != BSP_CONSOLE_PORT_CONSOLE)
56    {
57      rtems_termios_reserve_resources(conf, 1);
58    }
59   
60  return;
61}
Note: See TracBrowser for help on using the repository browser.