Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/tty/ttyio.c File Reference

#include <stddef.h>
#include <mc68681.h>
#include <cubeos.h>
#include <sys_var.h>
#include <iobuf.h>
#include <kerror.h>
#include <io_sci.h>
#include <io_duart.h>
#include <stdio.h>

Include dependency graph for ttyio.c:

Go to the source code of this file.

Functions

void TTY_outchar (char byte)
 writes one character to the current console tty. More...

void TTY_setcontty (int whichtty)
 selects the console TTY TTY =0 is the SCI interface TTY =1 is the DUART channel A TTY =1 is the DUART channel B. More...

void TTY_conecho_on ()
 enables echo of input characters on the console tty. More...

void TTY_conecho_off ()
 disables echo of input characters on the console tty. More...

int TTY_setbps (struct TTY_tty_dev *tty, int bps)
 sets the connection speed on tty to bps. More...

void TTY_setmode (struct TTY_tty_dev *tty, char mode)
 Sets tty into mode. More...

char TTY_getmode (struct TTY_tty_dev *tty)
 returns the current mode of tty. More...

char TTY_getstate (struct TTY_tty_dev *tty)
 returns the current state of tty. More...

char TTY_readchar (struct TTY_tty_dev *tty)
 reads one character of tty. More...

void TTY_writechar (struct TTY_tty_dev *tty, char byte)
 writes one character to tty. More...

char TTY_inchar (void)
 reads one character from the current console The function returns the character read. In nonblocking mode, it returns a 0 if there is no character in the queue. More...

void TTY_soutchar (char byte)
 writes one character to the current console tty without blocking interrupts This function should be used with caution, it is usefull to print from an ISR. More...

void dummy ()
void TTY_init (void)
 initializes all TTYs in the system. This function is normally called from the crt0.s startup file. More...


Variables

TTY_tty_dev TTY_tty [3]
iobuf TTY_tty_in [3]
iobuf TTY_tty_out [3]
char _TTY_console_echo
 internal console echo state. More...

int _TTY_contty
 internal console tty pointer. More...


Function Documentation

void dummy  
 

Definition at line 288 of file ttyio.c.

Referenced by _I2C_master_handler, and TTY_init.


Variable Documentation

struct TTY_tty_dev TTY_tty[3]
 

Definition at line 26 of file ttyio.c.

struct iobuf TTY_tty_in[3]
 

Definition at line 27 of file ttyio.c.

struct iobuf TTY_tty_out[3]
 

Definition at line 28 of file ttyio.c.


Generated on Thu Feb 20 15:38:51 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002