Go to the documentation of this file.
44 #include "contiki-conf.h"
46 #ifndef NETSTACK_NETWORK
47 #ifdef NETSTACK_CONF_NETWORK
48 #define NETSTACK_NETWORK NETSTACK_CONF_NETWORK
50 #define NETSTACK_NETWORK rime_driver
55 #ifdef NETSTACK_CONF_MAC
56 #define NETSTACK_MAC NETSTACK_CONF_MAC
58 #define NETSTACK_MAC nullmac_driver
63 #ifdef NETSTACK_CONF_RDC
64 #define NETSTACK_RDC NETSTACK_CONF_RDC
66 #define NETSTACK_RDC nullrdc_driver
70 #ifndef NETSTACK_RDC_CHANNEL_CHECK_RATE
71 #ifdef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
72 #define NETSTACK_RDC_CHANNEL_CHECK_RATE NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
74 #define NETSTACK_RDC_CHANNEL_CHECK_RATE 8
78 #if (NETSTACK_RDC_CHANNEL_CHECK_RATE & (NETSTACK_RDC_CHANNEL_CHECK_RATE - 1)) != 0
79 #error NETSTACK_RDC_CONF_CHANNEL_CHECK_RATE must be a power of two (i.e., 1, 2, 4, 8, 16, 32, 64, ...).
80 #error Change NETSTACK_RDC_CONF_CHANNEL_CHECK_RATE in contiki-conf.h, project-conf.h or in your Makefile.
84 #ifndef NETSTACK_RADIO
85 #ifdef NETSTACK_CONF_RADIO
86 #define NETSTACK_RADIO NETSTACK_CONF_RADIO
88 #define NETSTACK_RADIO nullradio_driver
92 #ifndef NETSTACK_FRAMER
93 #ifdef NETSTACK_CONF_FRAMER
94 #define NETSTACK_FRAMER NETSTACK_CONF_FRAMER
96 #define NETSTACK_FRAMER framer_nullmac
122 extern const struct framer NETSTACK_FRAMER;
124 void netstack_init(
void);