Make serial line special char values configurable
This commit is contained in:
parent
e8f5c71666
commit
3a90439778
|
@ -45,8 +45,13 @@
|
||||||
#error Change SERIAL_LINE_CONF_BUFSIZE in contiki-conf.h.
|
#error Change SERIAL_LINE_CONF_BUFSIZE in contiki-conf.h.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef IGNORE_CHAR
|
||||||
#define IGNORE_CHAR(c) (c == 0x0d)
|
#define IGNORE_CHAR(c) (c == 0x0d)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef END
|
||||||
#define END 0x0a
|
#define END 0x0a
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct ringbuf rxbuf;
|
static struct ringbuf rxbuf;
|
||||||
static uint8_t rxbuf_data[BUFSIZE];
|
static uint8_t rxbuf_data[BUFSIZE];
|
||||||
|
|
Loading…
Reference in New Issue