2004-06-21 22:39:25 +00:00
|
|
|
/*
|
|
|
|
*
|
2006-09-15 14:55:39 +00:00
|
|
|
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
2004-06-21 22:39:25 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2004-06-22 22:05:24 +00:00
|
|
|
#include "head.h"
|
|
|
|
|
2007-09-11 23:01:30 +00:00
|
|
|
enum {
|
|
|
|
SERIAL_MODEM_PORT = 0,
|
|
|
|
SERIAL_PRINTER_PORT = 1,
|
2004-06-22 22:05:24 +00:00
|
|
|
|
2007-09-11 23:01:30 +00:00
|
|
|
SERIAL_PORT_NB,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int serial_is_available(unsigned int port);
|
|
|
|
extern void serial_put(unsigned int port, char c);
|
2005-08-25 21:46:47 +00:00
|
|
|
#ifdef USE_CLI
|
2007-09-11 23:01:30 +00:00
|
|
|
extern int serial_keypressed(unsigned int port);
|
|
|
|
extern int serial_getchar(unsigned int port);
|
2005-08-25 21:46:47 +00:00
|
|
|
#endif
|
2007-09-16 15:11:54 +00:00
|
|
|
extern void serial_init(void);
|
|
|
|
extern void serial_enable(int port, int bitrate, int parity, int datasize, int stopbits);
|