Change the way we switch between cc2530 models
The switch is now performed through a configuration define, which has also been renamed to better match Contiki's naming conventions
This commit is contained in:
parent
1b0470687b
commit
f30d92b101
12 changed files with 29 additions and 19 deletions
|
@ -1,6 +1,3 @@
|
|||
# To build for the cc2531 USB stick:
|
||||
DEFINES+=MODEL_CC2531=1,
|
||||
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
# We need uIPv6, therefore we also need banking
|
||||
|
|
|
@ -53,4 +53,7 @@
|
|||
|
||||
#define UIP_FALLBACK_INTERFACE slip_interface
|
||||
|
||||
/* Change to 0 to build for the SmartRF + cc2530 EM */
|
||||
#define MODELS_CONF_CC2531_USB_STICK 1
|
||||
|
||||
#endif /* PROJECT_CONF_H_ */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CONTIKI_PROJECT = cc2531-usb-demo
|
||||
|
||||
DEFINES+=MODEL_CC2531=1
|
||||
DEFINES+=MODELS_CONF_CC2531_USB_STICK=1
|
||||
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
DEFINES+=PROJECT_CONF_H
|
||||
DEFINES+=MODEL_CC2531=1
|
||||
PROJECT_SOURCEFILES += stub-rdc.c
|
||||
|
||||
CONTIKI_PROJECT = sniffer
|
||||
|
|
|
@ -47,6 +47,9 @@
|
|||
#define LPM_CONF_MODE 0
|
||||
#define UART0_CONF_HIGH_SPEED 1
|
||||
|
||||
/* Change to 0 to build for the SmartRF + cc2530 EM */
|
||||
#define MODELS_CONF_CC2531_USB_STICK 1
|
||||
|
||||
/* Used by cc2531 USB dongle builds, has no effect on SmartRF builds */
|
||||
#define USB_SERIAL_CONF_BUFFERED 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue