Add serial_get() skeleton

This commit is contained in:
Laurent Vivier 2005-08-25 21:46:47 +00:00
parent 9c2f76491c
commit 6b75470fec
2 changed files with 10 additions and 0 deletions

View File

@ -236,6 +236,13 @@ ssize_t write(int fd, const void *buf, size_t count)
return param.ioActCount;
}
#ifdef USE_CLI
int serial_get(void)
{
return 0;
}
#endif
void serial_put(char c)
{
#if USE_BUFFER

View File

@ -14,4 +14,7 @@ extern int setserial(short refNum, unsigned int bitrate, unsigned int datasize,
int parity, int stopbits);
extern void serial_put(char c);
#ifdef USE_CLI
extern int serial_get(void);
#endif
extern void serial_init(emile_l2_header_t* info);