mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-23 01:29:34 +00:00
Add serial_get() skeleton
This commit is contained in:
parent
9c2f76491c
commit
6b75470fec
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user