From fa166116b7835baa74852f1dbde6de2510595147 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 23 Mar 2013 12:03:10 +0000 Subject: [PATCH] Auto-enable SLIP for 8051-based platforms --- platform/cc2530dk/contiki-conf.h | 4 ++++ platform/sensinode/contiki-conf.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/platform/cc2530dk/contiki-conf.h b/platform/cc2530dk/contiki-conf.h index ae7a9641a..c673b0f43 100644 --- a/platform/cc2530dk/contiki-conf.h +++ b/platform/cc2530dk/contiki-conf.h @@ -62,6 +62,10 @@ #define USB_SERIAL_CONF_BUFFERED 1 #endif +#if defined (UIP_FALLBACK_INTERFACE) || defined (CMD_CONF_OUTPUT) +#define SLIP_ARCH_CONF_ENABLE 1 +#endif + /* Are we a SLIP bridge? */ #if SLIP_ARCH_CONF_ENABLE /* Make sure the UART is enabled, with interrupts */ diff --git a/platform/sensinode/contiki-conf.h b/platform/sensinode/contiki-conf.h index 21ae8f655..d7d9aa30c 100644 --- a/platform/sensinode/contiki-conf.h +++ b/platform/sensinode/contiki-conf.h @@ -62,6 +62,10 @@ #define UART_ONE_CONF_HIGH_SPEED 0 #endif +#if defined (UIP_FALLBACK_INTERFACE) || defined (CMD_CONF_OUTPUT) +#define SLIP_ARCH_CONF_ENABLE 1 +#endif + /* Are we a SLIP bridge? */ #if SLIP_ARCH_CONF_ENABLE /* Make sure UART1 is enabled, with interrupts */