EMILE/second/serial.h

24 lines
503 B
C
Raw Normal View History

2004-06-21 22:39:25 +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"
enum {
SERIAL_MODEM_PORT = 0,
SERIAL_PRINTER_PORT = 1,
2004-06-22 22:05:24 +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
extern int serial_keypressed(unsigned int port);
extern int serial_getchar(unsigned int port);
2005-08-25 21:46:47 +00:00
#endif
extern void serial_init(void);
extern void serial_enable(int port, int bitrate, int parity, int datasize, int stopbits);