I solved my problem. It was nothing with returning values, for some reason the file AM.h wasn't been read correctly, so I import it manually.
2013/8/14 Guilherme Politta <[email protected]> > 1) I'm actually testing a application ( > http://www.eecs.harvard.edu/ssr/projects/sync/#code) that's why I'm > using TinyOS 1.x. > 2) I didn't touch in the Macbackoff interface, the implementation I showed > you is what I got from installing TinyOS. > > Thanks for you help. > > > 2013/8/14 Eric Decker <[email protected]> > >> >> A number of points: >> >> 1) TinyOS 1 has been deprecated for quite a while now. years and years. >> >> 2) events get signalled and don't return values. >> >> 3) you could have figured this out yourself by looking at other pieces of >> code that use signals. >> >> >> >> >> >> On Tue, Aug 13, 2013 at 5:13 AM, Guilherme Politta < >> [email protected]> wrote: >> >>> I'm having a compilation error using MacBackoff interface in TinyOS 1.x: >>> >>> /opt/tinyos-1.x/tos/lib/CC2420Radio/MacBackoff.nc:74: syntax error >>> before `m' >>> /opt/tinyos-1.x/tos/lib/CC2420Radio/MacBackoff.nc:75: syntax error >>> before `m' >>> >>> >>> The MacBackoff code is: >>> >>> interface MacBackoff >>> { >>> async event int16_t initialBackoff(TOS_MsgPtr m); //error in this line >>> async event int16_t congestionBackoff(TOS_MsgPtr m); //error in this >>> line >>> } >>> >>> I can't find what's is wrong with it >>> . >>> Thank you >>> --- >>> Guilherme Politta >>> Universidade Federal do ParanĂ¡ >>> >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> >> >> >> -- >> Eric B. Decker >> Senior (over 50 :-) Researcher >> >> > > > -- > Guilherme Politta > -- Guilherme Politta
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
