typedef uint8_t cc2420_status_t;
+#ifndef TFRAMES_ENABLED
+#define CC2420_IFRAME_TYPE
+#endif
+
/**
* CC2420 header. An I-frame (interoperability frame) header has an
* extra network byte specified by 6LowPAN
#endif
/**
- * The 6LowPAN ID has yet to be defined for a TinyOS network.
+ * The 6LowPAN NALP ID for a TinyOS network is 63 (TEP 125).
*/
#ifndef TINYOS_6LOWPAN_NETWORK_ID
-#define TINYOS_6LOWPAN_NETWORK_ID 0x0
+#define TINYOS_6LOWPAN_NETWORK_ID 0x3f
#endif
return call SubSend.maxPayloadLength();
}
- command void* Send.getPayload(message_t* msg) {
- return call SubSend.getPayload(msg);
- }
-
- /***************** Receive Commands ****************/
- command void* Receive.getPayload(message_t* msg, uint8_t* len) {
- return call SubReceive.getPayload(msg, len);
- }
-
- command uint8_t Receive.payloadLength(message_t* msg) {
- return call SubReceive.payloadLength(msg);
- }
-
- /***************** NonTinyosReceive Commands ****************/
- command void* NonTinyosReceive.getPayload[uint8_t networkId](message_t* msg, uint8_t* len) {
- return call SubReceive.getPayload(msg, len);
- }
-
- command uint8_t NonTinyosReceive.payloadLength[uint8_t networkId](message_t* msg) {
- return call SubReceive.payloadLength(msg);
+ command void* Send.getPayload(message_t* msg, uint8_t len) {
+ return call SubSend.getPayload(msg, len);
}
/***************** SubSend Events *****************/