Merge branch 'contiki' into osd
This commit is contained in:
commit
a02be51f08
274 changed files with 1159 additions and 1285 deletions
|
@ -101,6 +101,7 @@ CFLAGSNO = -Wall -mmcu=$(MCU) -gdwarf-2 -fno-strict-aliasing \
|
|||
-I. -I$(CONTIKI)/core -I$(CONTIKI_CPU) $(USB_INCLUDES) \
|
||||
$(CONTIKI_PLAT_DEFS)
|
||||
CFLAGS += $(CFLAGSNO) -O$(OPTI)
|
||||
ASFLAGS += -mmcu=$(MCU)
|
||||
ifndef BOOTLOADER_START
|
||||
BOOTLOADER_START = 0x1F800
|
||||
endif
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
#include <avr/interrupt.h>
|
||||
|
||||
/* Two tick counters avoid a software divide when CLOCK_SECOND is not a power of two. */
|
||||
#if CLOCK_SECOND && (CLOCK_SECOND - 1)
|
||||
#if CLOCK_SECOND & (CLOCK_SECOND - 1)
|
||||
#define TWO_COUNTERS 1
|
||||
#endif
|
||||
|
||||
|
|
|
@ -426,11 +426,7 @@ sicslowmac_dataRequest(void)
|
|||
params.fcf.srcAddrMode = LONGADDRMODE;
|
||||
params.dest_pid = ieee15_4ManagerAddress.get_dst_panid();
|
||||
|
||||
/*
|
||||
* If the output address is NULL in the Rime buf, then it is broadcast
|
||||
* on the 802.15.4 network.
|
||||
*/
|
||||
if(linkaddr_cmp(packetbuf_addr(PACKETBUF_ADDR_RECEIVER), &linkaddr_null) ) {
|
||||
if(packetbuf_holds_broadcast()) {
|
||||
/* Broadcast requires short address mode. */
|
||||
params.fcf.destAddrMode = SHORTADDRMODE;
|
||||
params.dest_pid = BROADCASTPANDID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue