Merge branch 'contiki' into osd
This commit is contained in:
commit
877bf27f5a
245 changed files with 8117 additions and 6356 deletions
|
@ -402,14 +402,18 @@ sicslowmac_dataRequest(void)
|
|||
frame_create_params_t params;
|
||||
frame_result_t result;
|
||||
|
||||
#if NETSTACK_CONF_WITH_RIME
|
||||
/* Save the msduHandle in a global variable. */
|
||||
msduHandle = packetbuf_attr(PACKETBUF_ATTR_PACKET_ID);
|
||||
#endif
|
||||
|
||||
/* Build the FCF. */
|
||||
params.fcf.frameType = DATAFRAME;
|
||||
params.fcf.securityEnabled = false;
|
||||
params.fcf.framePending = false;
|
||||
#if NETSTACK_CONF_WITH_RIME
|
||||
params.fcf.ackRequired = packetbuf_attr(PACKETBUF_ATTR_RELIABLE);
|
||||
#endif
|
||||
params.fcf.panIdCompression = false;
|
||||
|
||||
/* Insert IEEE 802.15.4 (2003) version bit. */
|
||||
|
|
|
@ -1073,8 +1073,10 @@ rf230_transmit(unsigned short payload_len)
|
|||
|
||||
if (tx_result==RADIO_TX_OK) {
|
||||
RIMESTATS_ADD(lltx);
|
||||
#if NETSTACK_CONF_WITH_RIME
|
||||
if(packetbuf_attr(PACKETBUF_ATTR_RELIABLE))
|
||||
RIMESTATS_ADD(ackrx); //ack was requested and received
|
||||
#endif
|
||||
#if RF230_INSERTACK
|
||||
/* Not PAN broadcast to FFFF, and ACK was requested and received */
|
||||
if (!((buffer[5]==0xff) && (buffer[6]==0xff)) && (buffer[0]&(1<<6)))
|
||||
|
|
|
@ -49,8 +49,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef RADIO_H
|
||||
#define RADIO_H
|
||||
#ifndef RF230BB_H_
|
||||
#define RF230BB_H_
|
||||
/*============================ INCLUDE =======================================*/
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -225,6 +225,6 @@ uint8_t rf230_get_raw_rssi(void);
|
|||
|
||||
#define rf230_rssi rf230_get_raw_rssi
|
||||
|
||||
#endif
|
||||
#endif /* RF230BB_H_ */
|
||||
/** @} */
|
||||
/*EOF*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue