Remove legacy sniffer configuration: openmote-cc2538
This commit is contained in:
parent
4a4b3a344d
commit
35c37f356c
|
@ -199,10 +199,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
#define SLIP_ARCH_CONF_USB 0 /**< SLIP over UART by default */
|
||||
#endif
|
||||
|
||||
#ifndef CC2538_RF_CONF_SNIFFER_USB
|
||||
#define CC2538_RF_CONF_SNIFFER_USB 0 /**< Sniffer out over UART by default */
|
||||
#endif
|
||||
|
||||
#ifndef DBG_CONF_USB
|
||||
#define DBG_CONF_USB 0 /**< All debugging over UART by default */
|
||||
#endif
|
||||
|
@ -217,12 +213,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if !CC2538_RF_CONF_SNIFFER_USB
|
||||
#ifndef CC2538_RF_CONF_SNIFFER_UART
|
||||
#define CC2538_RF_CONF_SNIFFER_UART 0 /**< UART to use with sniffer */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !DBG_CONF_USB
|
||||
#ifndef DBG_CONF_UART
|
||||
#define DBG_CONF_UART 0 /**< UART to use for debugging */
|
||||
|
@ -249,15 +239,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* When set, the radio turns off address filtering and sends all captured
|
||||
* frames down a peripheral (UART or USB, depending on the value of
|
||||
* CC2538_RF_CONF_SNIFFER_USB)
|
||||
*/
|
||||
#ifndef CC2538_RF_CONF_SNIFFER
|
||||
#define CC2538_RF_CONF_SNIFFER 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \brief Define this as 1 to build a headless node.
|
||||
*
|
||||
|
@ -278,12 +259,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
|
||||
#undef STARTUP_CONF_VERBOSE
|
||||
#define STARTUP_CONF_VERBOSE 0
|
||||
|
||||
/* Little sanity check: We can't have quiet sniffers */
|
||||
#if CC2538_RF_CONF_SNIFFER
|
||||
#error "CC2538_RF_CONF_SNIFFER == 1 and CC2538_CONF_QUIET == 1"
|
||||
#error "These values are conflicting. Please set either to 0"
|
||||
#endif
|
||||
#endif /* CC2538_CONF_QUIET */
|
||||
|
||||
/**
|
||||
|
@ -292,8 +267,7 @@ typedef uint32_t rtimer_clock_t;
|
|||
#ifndef USB_SERIAL_CONF_ENABLE
|
||||
#define USB_SERIAL_CONF_ENABLE \
|
||||
((SLIP_ARCH_CONF_USB & SLIP_ARCH_CONF_ENABLED) | \
|
||||
DBG_CONF_USB | \
|
||||
(CC2538_RF_CONF_SNIFFER & CC2538_RF_CONF_SNIFFER_USB))
|
||||
DBG_CONF_USB)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -313,9 +287,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
#define UART_IN_USE_BY_SLIP(u) (SLIP_ARCH_CONF_ENABLED && \
|
||||
!SLIP_ARCH_CONF_USB && \
|
||||
SLIP_ARCH_CONF_UART == (u))
|
||||
#define UART_IN_USE_BY_RF_SNIFFER(u) (CC2538_RF_CONF_SNIFFER && \
|
||||
!CC2538_RF_CONF_SNIFFER_USB && \
|
||||
CC2538_RF_CONF_SNIFFER_UART == (u))
|
||||
#define UART_IN_USE_BY_DBG(u) (!DBG_CONF_USB && DBG_CONF_UART == (u))
|
||||
#define UART_IN_USE_BY_UART1(u) (UART1_CONF_UART == (u))
|
||||
|
||||
|
@ -323,7 +294,6 @@ typedef uint32_t rtimer_clock_t;
|
|||
UART_CONF_ENABLE && \
|
||||
(UART_IN_USE_BY_SERIAL_LINE(u) || \
|
||||
UART_IN_USE_BY_SLIP(u) || \
|
||||
UART_IN_USE_BY_RF_SNIFFER(u) || \
|
||||
UART_IN_USE_BY_DBG(u) || \
|
||||
UART_IN_USE_BY_UART1(u)) \
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue