EMILE/second/serial.h

24 lines
503 B
C

/*
*
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include "head.h"
enum {
SERIAL_MODEM_PORT = 0,
SERIAL_PRINTER_PORT = 1,
SERIAL_PORT_NB,
};
extern int serial_is_available(unsigned int port);
extern void serial_put(unsigned int port, char c);
#ifdef USE_CLI
extern int serial_keypressed(unsigned int port);
extern int serial_getchar(unsigned int port);
#endif
extern void serial_init(void);
extern void serial_enable(int port, int bitrate, int parity, int datasize, int stopbits);