Hello,
i compiled a radio application and i get this warning
make micaz
dir -p build/micaz
compiling TestRC6C to a micaz binary
c -o build/micaz/main.exe -Os -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP
x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"TestRC6C\"
-DIDENT_USERNAME=\"Administrateur\" -DIDENT_HOSTNAME=\"v8fmk15ebx5
4b\" -DIDENT_USERHASH=0xf17b64ddL -DIDENT_TIMESTAMP=0x4c232adaL
-DIDENT_UIDHASH=0x0bbb87c5L -fnesc-dump=wiring -fnesc-dump='interfaces(!ab
ract())' -fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml TestRC6C.nc -lm
component `TestRC6C':
stRC6C.nc: In function `Timer0.fired':
stRC6C.nc:91: warning: passing argument 2 of `Packet.getPayload' makes integer
from pointer without a cast
sr/lib/gcc/avr/4.1.2/../../../../avr/lib/avr5/crtm128.o: In function
`__bad_interrupt':
/../../../crt1/gcrt1.S:124: undefined reference to `main'
ke: *** [exe0] Error 1
could anyone explain me that and how to fix it???
this is the code:
if (!busy) {
RC6_RadioMsg * btrpkt = (RC6_RadioMsg *)(call Packet.getPayload(&pkt,
NULL));
btrpkt->nodeid = TOS_NODE_ID;
if (call AMSend.send(AM_BROADCAST_ADDR, &pkt, sizeof(RC6_RadioMsg )) ==
SUCCESS) {
busy = TRUE;
}
}
}
thanks in advance
Sam,
_________________________________________________________________
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail,
c'est gratuit !
https://signup.live.com/signup.aspx?id=60969_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help