sci.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _SYS_SCI_H
00022 #define _SYS_SCI_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 #include <stddef.h>
00036
00037 extern void sci_initialize (unsigned char baud,
00038 unsigned char *buffer,
00039 size_t len);
00040
00041 extern void sci_putc (unsigned char c);
00042
00043 extern void sci_write (const unsigned char *data, size_t len);
00044
00045 extern int sci_read (unsigned char *data, size_t len, int mode);
00046
00047
00048 #endif
00049
|