文件名称 |
位置说明 |
简要描述 |
Makefile |
contiki-3.0\examples\cc2538dk |
cc2538-demo.c的makefile文件,用于生成cc2530固件。
该文件一般用于选择选择project_conf.h、设置网络协议栈等 |
project_conf.h |
contiki-3.0\examples\cc2538dk |
设置具体Demo的参数,一般包括具体的网络设置、开发板管脚设置等等 |
contiki_conf.h |
contiki-3.0\platform\cc2530dk |
cc2538dk平台contiki配置参数 |
contiki_default_conf.h |
contiki\contiki-3.0\core |
contiki默认配置参数,与平台无关
|
#ifndef UART_CONF_ENABLE #define UART_CONF_ENABLE 1 /**< Enable/Disable UART I/O */ #endif
DEFINES+=PROJECT_CONF_H=\"project-conf.h\" CONTIKI_PROJECT = cc2538-demo timer-test all: $(CONTIKI_PROJECT) CONTIKI = ../.. CONTIKI_WITH_RIME = 1 include $(CONTIKI)/Makefile.include
CONTIKI_PROJECT = udp-echo-server all: $(CONTIKI_PROJECT) CONTIKI = ../../.. CONTIKI_WITH_IPV6 = 1 include $(CONTIKI)/Makefile.include
ifeq ($(CONTIKI_WITH_IPV6),1) CFLAGS += -DNETSTACK_CONF_WITH_IPV6=1 ifneq ($(CONTIKI_WITH_RPL),0) CONTIKI_WITH_RPL = 1 endif MODULES += core/net/ipv6 core/net/ip endif
#ifndef PROJECT_CONF_H_ #define PROJECT_CONF_H_ #define NETSTACK_CONF_RDC nullrdc_driver #endif /* PROJECT_CONF_H_ */
#ifndef PROJECT_CONF_H_ #define PROJECT_CONF_H_ #define CC2538_RF_CONF_SNIFFER 1 #define CC2538_RF_CONF_AUTOACK 0 #define NETSTACK_CONF_RDC stub_rdc_driver #define UART0_CONF_BAUD_RATE 460800 #endif /* PROJECT_CONF_H_ */
#undef UIP_CONF_ROUTER #define UIP_CONF_ROUTER 0
/* RF Config */ #ifndef IEEE802154_CONF_PANID #define IEEE802154_CONF_PANID 0xD5C8 #endif #ifndef CC2538_RF_CONF_CHANNEL #define CC2538_RF_CONF_CHANNEL 19 #endif /* CC2538_RF_CONF_CHANNEL */
/* Don't let contiki-default-conf.h decide if we are an IPv6 build */ #ifndef NETSTACK_CONF_WITH_IPV6 #define NETSTACK_CONF_WITH_IPV6 0 #endif
#ifndef NETSTACK_CONF_NETWORK #if NETSTACK_CONF_WITH_IPV6 #define NETSTACK_CONF_NETWORK sicslowpan_driver #else #define NETSTACK_CONF_NETWORK rime_driver #endif /* NETSTACK_CONF_WITH_IPV6 */
/* NETSTACK_CONF_WITH_IPV6 specifies whether or not IPv6 should be used. If IPv6 is not used, IPv4 is used instead. */ #ifndef NETSTACK_CONF_WITH_IPV6 #define NETSTACK_CONF_WITH_IPV6 0 #endif /* NETSTACK_CONF_WITH_IPV6 */ /* UIP_CONF_BUFFER_SIZE specifies how much memory should be reserved for the uIP packet buffer. This sets an upper bound on the largest IP packet that can be received by the system. */ #ifndef UIP_CONF_BUFFER_SIZE #define UIP_CONF_BUFFER_SIZE 128 #endif /* UIP_CONF_BUFFER_SIZE */ /* UIP_CONF_ROUTER specifies if the IPv6 node should be a router or not. By default, all Contiki nodes are routers. */ #ifndef UIP_CONF_ROUTER #define UIP_CONF_ROUTER 1 #endif /* UIP_CONF_ROUTER */ /* UIP_CONF_IPV6_RPL specifies if RPL is to be used for IPv6 routing. */ #ifndef UIP_CONF_IPV6_RPL #define UIP_CONF_IPV6_RPL 1 #endif /* UIP_CONF_IPV6_RPL */ /* UIP_CONF_MAX_ROUTES specifies the maximum number of routes that each node will be able to handle. */ #ifndef UIP_CONF_MAX_ROUTES #define UIP_CONF_MAX_ROUTES 20 #endif /* UIP_CONF_MAX_ROUTES */