Bonjour,
I wrote a simple application with the component TimeSyncMessageC ( see
below) , when I compile it with make micaz it's compiled successfully, when
I add the sim option make  micaz sim I have these errors,

 LOW POWER COMMUNICATIONS DISABLED ***"
App.nc: In function 'App$Receive$receive':
App.nc:71: warning: no return statement in function returning non-void
xubun...@xubuntos-tinyos:/opt/copy of tinyos-2.1.0/apps/Null$ make micaz >
t.txtsim
/opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
App.nc: In function 'App$Receive$receive':
App.nc:71: warning: no return statement in function returning non-void
xubun...@xubuntos-tinyos:/opt/copy of tinyos-2.1.0/apps/Null$ make micaz sim
> t.txt
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420TimeSyncMessageP':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:45: interface
PacketTimeSyncOffset not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`Packet.clear':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:65: interface
has no command or event named `cancel'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncAMSend32khz.send':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:97: interface
has no command or event named `set'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncAMSend32khz.cancel':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:103: interface
has no command or event named `cancel'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncPacket32khz.isValid':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155:
`CC2420_INVALID_TIMESTAMP' undeclared (first use in this function)
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155: (Each
undeclared identifier is reported only once
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155: for each
function it appears in.)
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncPacketMilli.isValid':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:169:
`CC2420_INVALID_TIMESTAMP' undeclared (first use in this function)
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In C file:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:85: syntax error before
`nx_bool'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:85: warning: no semicolon at end
of struct or union
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:86: syntax error before `ack'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:87: syntax error before
`timesync'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: syntax error before `}'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: warning: type defaults to
`int' in declaration of `cc2420_metadata_t'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: warning: data definition has
no type or storage class
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:48: interface
CC2420Packet not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:51: interface
RadioBackoff not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:59,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420ActiveMessageP':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:52: interface
CC2420PacketBody not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:53: interface
CC2420Config not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:59,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMSend.send':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:64: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface has
no command or event named `getPanAddr'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.destination':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:93: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.source':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:98: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setDestination':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:103: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setSource':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:108: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.type':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:118: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setType':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:123: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.group':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:128: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setGroup':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:133: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.localGroup':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:137: interface
has no command or event named `getPanAddr'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.clear':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:143: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:144: interface
has no command or event named `getMetadata'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.payloadLength':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:148: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.setPayloadLength':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:152: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubReceive.receive':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:173: interface
has no command or event named `getMetadata'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:191: `syncDone'
is not in interface `CC2420Config'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:197:
`requestInitialBackoff' is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestInitialBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:198: interface
has no command or event named `requestInitialBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:198: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:202:
`requestCongestionBackoff' is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestCongestionBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:203: interface
has no command or event named `requestCongestionBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:203: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:206: `requestCca'
is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestCca':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:208: interface
has no command or event named `requestCca'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:208: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:212:
`setInitialBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setInitialBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:213: interface
has no command or event named `setInitialBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:220:
`setCongestionBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setCongestionBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:221: interface
has no command or event named `setCongestionBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:230: `setCca' is
not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setCca':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:231: interface
has no command or event named `setCca'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:251:
`requestInitialBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:255:
`requestCongestionBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:259: `requestCca'
is not in interface `RadioBackoff'
In component `CC2420ActiveMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:60: component
CC2420CsmaC not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:62: component
UniqueSendC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:63: component
UniqueReceiveC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:64: component
CC2420TinyosNetworkC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:65: component
CC2420PacketC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:66: component
CC2420ControlC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:71: component
DummyLplC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:77: component
PacketLinkDummyC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:88: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:89: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:90: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:91: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:92: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:95: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:96: cannot find
`SubControl'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:99: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:100: cannot find
`SubSend'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:101: cannot find
`Send'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:102: cannot find
`Send'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:103: cannot find
`SubSend'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:106: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:107: cannot find
`Receive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:108: cannot find
`Receive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:109: cannot find
`SubReceive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:111: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:112: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:113: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:114: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:116: no match
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:20:
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:121:2: error: #error
"Unknown clock rate. MHZ must be defined to one of 1, 2, 4, or 8."
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:20,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In C file:
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:126: `MHZ' undeclared here
(not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:126: enumerator value for
`PLATFORM_MHZ' not integer constant
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CounterOne16C':
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:24: syntax error
before `TOne'
In file included from
/opt/tinyos-2.1.0/tos/chips/atm128/timer/HplAtm128Timer1C.nc:44,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `HplAtm128Timer1P':
/opt/tinyos-2.1.0/tos/chips/atm128/timer/HplAtm128Timer1P.nc:206: warning:
declaration of `time' shadows global declaration
/usr/include/time.h:187: warning: location of shadowed declaration
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `InitOneP':
/opt/tinyos-2.1.0/tos/platforms/mica/InitOneP.nc:24: `MICA_PRESCALER_ONE'
undeclared here (not in a function)
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CounterOne16C':
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:29: `TOne' undeclared
here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:31: cannot find
`Counter'
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `Counter32khz32C':
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:30:
`MICA_DIVIDE_ONE_FOR_32KHZ_LOG2' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:31:
`counter_one_overflow_t' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:34: no match
In component `CC2420TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:66: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:67: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:68: no match
In component `TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:76: no match
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:77: no match
make: *** [sim-exe] Error 1
xubun...@xubuntos-tinyos:/opt/copy of tinyos-2.1.0/apps/Null$ make micaz sim
> t.txt
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420TimeSyncMessageP':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:45: interface
PacketTimeSyncOffset not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`Packet.clear':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:65: interface
has no command or event named `cancel'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncAMSend32khz.send':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:97: interface
has no command or event named `set'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncAMSend32khz.cancel':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:103: interface
has no command or event named `cancel'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncPacket32khz.isValid':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155:
`CC2420_INVALID_TIMESTAMP' undeclared (first use in this function)
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155: (Each
undeclared identifier is reported only once
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:155: for each
function it appears in.)
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc: In function
`TimeSyncPacketMilli.isValid':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageP.nc:169:
`CC2420_INVALID_TIMESTAMP' undeclared (first use in this function)
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In C file:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:85: syntax error before
`nx_bool'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:85: warning: no semicolon at end
of struct or union
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:86: syntax error before `ack'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:87: syntax error before
`timesync'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: syntax error before `}'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: warning: type defaults to
`int' in declaration of `cc2420_metadata_t'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h:97: warning: data definition has
no type or storage class
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:48: interface
CC2420Packet not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:51: interface
RadioBackoff not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:59,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CC2420ActiveMessageP':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:52: interface
CC2420PacketBody not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:53: interface
CC2420Config not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:59,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMSend.send':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:64: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface has
no command or event named `getPanAddr'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.destination':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:93: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.source':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:98: interface has
no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setDestination':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:103: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setSource':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:108: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.type':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:118: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setType':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:123: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.group':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:128: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setGroup':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:133: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.localGroup':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:137: interface
has no command or event named `getPanAddr'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.clear':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:143: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:144: interface
has no command or event named `getMetadata'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.payloadLength':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:148: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.setPayloadLength':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:152: interface
has no command or event named `getHeader'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubReceive.receive':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:173: interface
has no command or event named `getMetadata'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:191: `syncDone'
is not in interface `CC2420Config'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:197:
`requestInitialBackoff' is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestInitialBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:198: interface
has no command or event named `requestInitialBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:198: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:202:
`requestCongestionBackoff' is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestCongestionBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:203: interface
has no command or event named `requestCongestionBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:203: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:206: `requestCca'
is not in interface `SubBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`SubBackoff.requestCca':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:208: interface
has no command or event named `requestCca'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:208: subscripted
value is neither array nor pointer
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:212:
`setInitialBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setInitialBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:213: interface
has no command or event named `setInitialBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:220:
`setCongestionBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setCongestionBackoff':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:221: interface
has no command or event named `setCongestionBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:230: `setCca' is
not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`RadioBackoff.setCca':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:231: interface
has no command or event named `setCca'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:251:
`requestInitialBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:255:
`requestCongestionBackoff' is not in interface `RadioBackoff'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageP.nc:259: `requestCca'
is not in interface `RadioBackoff'
In component `CC2420ActiveMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:60: component
CC2420CsmaC not found
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:54,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:62: component
UniqueSendC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:63: component
UniqueReceiveC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:64: component
CC2420TinyosNetworkC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:65: component
CC2420PacketC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:66: component
CC2420ControlC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:71: component
DummyLplC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:77: component
PacketLinkDummyC not found
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:88: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:89: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:90: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:91: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:92: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:95: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:96: cannot find
`SubControl'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:99: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:100: cannot find
`SubSend'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:101: cannot find
`Send'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:102: cannot find
`Send'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:103: cannot find
`SubSend'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:106: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:107: cannot find
`Receive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:108: cannot find
`Receive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:109: cannot find
`SubReceive'
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:111: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:112: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:113: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:114: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420ActiveMessageC.nc:116: no match
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:20:
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:121:2: error: #error
"Unknown clock rate. MHZ must be defined to one of 1, 2, 4, or 8."
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:20,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In C file:
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:126: `MHZ' undeclared here
(not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/MicaTimer.h:126: enumerator value for
`PLATFORM_MHZ' not integer constant
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CounterOne16C':
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:24: syntax error
before `TOne'
In file included from
/opt/tinyos-2.1.0/tos/chips/atm128/timer/HplAtm128Timer1C.nc:44,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `HplAtm128Timer1P':
/opt/tinyos-2.1.0/tos/chips/atm128/timer/HplAtm128Timer1P.nc:206: warning:
declaration of `time' shadows global declaration
/usr/include/time.h:187: warning: location of shadowed declaration
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `InitOneP':
/opt/tinyos-2.1.0/tos/platforms/mica/InitOneP.nc:24: `MICA_PRESCALER_ONE'
undeclared here (not in a function)
In file included from
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:28,
                 from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `CounterOne16C':
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:29: `TOne' undeclared
here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/CounterOne16C.nc:31: cannot find
`Counter'
In file included from
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:69,
                 from
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:62,
                 from NullAppC.nc:50:
In component `Counter32khz32C':
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:30:
`MICA_DIVIDE_ONE_FOR_32KHZ_LOG2' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:31:
`counter_one_overflow_t' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/platforms/mica/Counter32khz32C.nc:34: no match
In component `CC2420TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:66: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:67: no match
/opt/tinyos-2.1.0/tos/chips/cc2420/CC2420TimeSyncMessageC.nc:68: no match
In component `TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:76: no match
/opt/tinyos-2.1.0/tos/platforms/micaz/TimeSyncMessageC.nc:77: no match
make: *** [sim-exe] Error 1


************************************************************
configuration NullAppC{}
implementation {
  components MainC, App;
  components new TimerMilliC() as Timer;

  MainC.Boot <- App;
  App.Timer -> Timer;

  components TimeSyncMessageC as ActiveMessageC;
  App.RadioControl ->  ActiveMessageC;
  App.Receive -> ActiveMessageC.Receive[120];
  App.Send   ->  ActiveMessageC.TimeSyncAMSendMilli[0x3E];
  App.TimeSyncPacket -> ActiveMessageC;

}

***************************

module App
{
  uses interface Boot;
  uses interface Timer<TMilli> as Timer;

  uses  {
        interface SplitControl as RadioControl;
        interface Receive;
        interface TimeSyncAMSend<TMilli,uint32_t> as Send;
        interface TimeSyncPacket<TMilli,uint32_t>;
        }
}
implementation
{

  event void Timer.fired()
  {
    dbg("Boot","Timer fired,\n");
  }

  event void Boot.booted() {
    dbg("Boot"," mote booted\n");
    call Timer.startPeriodic( 1000 );
    call RadioControl.start();
  }

  
  event void Send.sendDone(message_t* ptr, error_t success) {}
  event message_t* Receive.receive(message_t* msgPtr, void* payload, uint8_t
len){}

  event void RadioControl.startDone(error_t error){}
  event void RadioControl.stopDone(error_t error){}
}

help please
-- 
View this message in context: 
http://old.nabble.com/TimeSyncMessageC-and-make-micaz-sim-tp27674532p27674532.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to