Skip to content

Commit

Permalink
Increase 8051 plaform configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
g-oikonomou committed Aug 9, 2013
1 parent 70d8bd7 commit 6a79ac3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 11 additions & 1 deletion platform/cc2530dk/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@
#endif /* UIP_CONF_IPV6 */

/* Network Stack */
#ifndef NETSTACK_CONF_NETWORK
#if UIP_CONF_IPV6
#define NETSTACK_CONF_NETWORK sicslowpan_driver
#else
#define NETSTACK_CONF_NETWORK rime_driver
#endif
#endif /* UIP_CONF_IPV6 */
#endif /* NETSTACK_CONF_NETWORK */

#ifndef NETSTACK_CONF_MAC
#define NETSTACK_CONF_MAC csma_driver
Expand All @@ -176,7 +178,10 @@
#define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
#endif

#ifndef NETSTACK_CONF_FRAMER
#define NETSTACK_CONF_FRAMER framer_802154
#endif

#define NETSTACK_CONF_RADIO cc2530_rf_driver

/* RF Config */
Expand Down Expand Up @@ -227,7 +232,9 @@
#endif

/* uIP */
#ifndef UIP_CONF_BUFFER_SIZE
#define UIP_CONF_BUFFER_SIZE 240
#endif
#define UIP_CONF_IPV6_QUEUE_PKT 0
#define UIP_CONF_IPV6_CHECKS 1
#define UIP_CONF_IPV6_REASSEMBLY 0
Expand All @@ -247,7 +254,10 @@
}

#define MAC_CONF_CHANNEL_CHECK_RATE 8

#ifndef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 6
#endif

#else /* UIP_CONF_IPV6 */
/* Network setup for non-IPv6 (rime). */
Expand Down
9 changes: 8 additions & 1 deletion platform/sensinode/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@
#endif

/* Network Stack */
#ifndef NETSTACK_CONF_NETWORK
#if UIP_CONF_IPV6
#define NETSTACK_CONF_NETWORK sicslowpan_driver
#else
#define NETSTACK_CONF_NETWORK rime_driver
#endif
#endif /* UIP_CONF_IPV6 */
#endif /* NETSTACK_CONF_NETWORK */

#ifndef NETSTACK_CONF_MAC
#define NETSTACK_CONF_MAC csma_driver
Expand All @@ -178,7 +180,10 @@
#define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
#endif

#ifndef NETSTACK_CONF_FRAMER
#define NETSTACK_CONF_FRAMER framer_802154
#endif

#define NETSTACK_CONF_RADIO cc2430_rf_driver

/* RF Config */
Expand Down Expand Up @@ -233,7 +238,9 @@
#endif

/* uIP */
#ifndef UIP_CONF_BUFFER_SIZE
#define UIP_CONF_BUFFER_SIZE 240
#endif
#define UIP_CONF_IPV6_QUEUE_PKT 0
#define UIP_CONF_IPV6_CHECKS 1
#define UIP_CONF_IPV6_REASSEMBLY 0
Expand Down

0 comments on commit 6a79ac3

Please sign in to comment.