forked from Imagelibrary/rtems
Split console_reserve_resources into its own file to reduce dependencies.
Still need to move debug io routines out.
This commit is contained in:
@@ -16,7 +16,7 @@ VPATH = @srcdir@
|
||||
PGM = ${ARCH}/console.rel
|
||||
|
||||
# C source names, if any, go here -- minus the .c
|
||||
C_PIECES = 85c30 console tbl85c30
|
||||
C_PIECES = 85c30 console consolereserveresources tbl85c30
|
||||
C_FILES = $(C_PIECES:%=%.c)
|
||||
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
|
||||
|
||||
|
||||
@@ -122,16 +122,7 @@ int console_inbyte_nonblocking(
|
||||
*/
|
||||
return inbyte_nonblocking_85c30( &Ports_85C30[ port ] );
|
||||
}
|
||||
|
||||
|
||||
void console_reserve_resources(
|
||||
rtems_configuration_table *configuration
|
||||
)
|
||||
{
|
||||
rtems_termios_reserve_resources( configuration, NUM_Z85C30_PORTS );
|
||||
}
|
||||
|
||||
|
||||
rtems_device_driver console_close(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* This file contains the routine console_reserve_resources
|
||||
* for the Score603e console driver.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1997.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
* Copyright assigned to U.S. Government, 1994.
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.OARcorp.com/rtems/license.html.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "consolebsp.h"
|
||||
|
||||
void console_reserve_resources(
|
||||
rtems_configuration_table *configuration
|
||||
)
|
||||
{
|
||||
rtems_termios_reserve_resources( configuration, NUM_Z85C30_PORTS );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user