sio.h

Description | Download | Table of Contents | Modules | Compound List | File List | Functions


Overview
Compiler
Documentation
Examples
Misc
Help
IDE & Tools

Download
Install

Links
Projects






00001 /* sys/sio.h -- Utility methods to read/write the SIO
00002    Copyright 2000 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@worldnet.fr)
00004 
00005 This file is part of GDB, GAS, and the GNU binutils.
00006 
00007 GDB, GAS, and the GNU binutils are free software; you can redistribute
00008 them and/or modify them under the terms of the GNU General Public
00009 License as published by the Free Software Foundation; either version
00010 1, or (at your option) any later version.
00011 
00012 GDB, GAS, and the GNU binutils are distributed in the hope that they
00013 will be useful, but WITHOUT ANY WARRANTY; without even the implied
00014 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
00015 the GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this file; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00020 
00021 #ifndef _SYS_SIO_H
00022 #define _SYS_SIO_H
00023 
00024 #include <sys/param.h>
00025 #include <sys/ports.h>
00026 
00027 #ifdef mc6811
00028 # include <asm-m68hc11/sio.h>
00029 #endif
00030 
00031 #ifdef mc6812
00032 # include <asm-m68hc12/sio.h>
00033 #endif
00034 
00035 extern void serial_init (void);
00036 
00037 /* Return != 0 if there is something to read on the serial line.  */
00038 extern unsigned char serial_receive_pending (void);
00039 
00040 /* Wait until the SIO has finished to send the character.  */
00041 extern void serial_flush (void);
00042 
00043 /* Send the character on the serial line.  */
00044 extern void serial_send (char c);
00045 
00046 /* Wait for a character on the serial line and return it.  */
00047 extern unsigned char serial_recv (void);
00048 
00055 extern void serial_print (const char *msg);
00056 
00063 extern void serial_getline (char *buf);
00064 
00065 #endif /* _SYS_SIO_H */
00066 

Description | Download | Table of Contents | Modules | Compound List | File List | Functions

    Last modified,
    Apr 16, 2001
[ Copying ]     [ Feedback to Stephane.Carrez@worldnet.fr ]