Make serial line special char values configurable

This commit is contained in:
George Oikonomou 2017-10-07 16:01:54 +01:00
parent e8f5c71666
commit 3a90439778
1 changed files with 5 additions and 0 deletions

View File

@ -45,8 +45,13 @@
#error Change SERIAL_LINE_CONF_BUFSIZE in contiki-conf.h.
#endif
#ifndef IGNORE_CHAR
#define IGNORE_CHAR(c) (c == 0x0d)
#endif
#ifndef END
#define END 0x0a
#endif
static struct ringbuf rxbuf;
static uint8_t rxbuf_data[BUFSIZE];