Hi all,

I'm trying to get a time using RadioSendCoordinator and RadioReceiveCoordinator.
However, I keep getting the following error message. And I have no idea what causes the error.
I also checked RadioCoordinator.nc interface and there is nothing that would cause parse error.

-------------------------------------- Error Message ----------------------------------------------------------------------------------------
make mica
    compiling EventTimeSyncC to a mica binary
ncc -o build/mica/main.exe -Os -board=micasb -target=mica  -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000 -fnesc-cfile=build/mica/app.c  EventTimeSyncC.nc -lm
In file included from EventTimeSyncM.nc:16:
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:33: parse error before `TOS_MsgPtr'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:38: parse error before `msg'
EventTimeSyncM.nc:279: conflicting types for `RadioSendCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:33: previous declaration of `RadioSendCoordinator.startSymbol'
EventTimeSyncM.nc:306: conflicting types for `RadioSendCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:38: previous declaration of `RadioSendCoordinator.byte'
EventTimeSyncM.nc:329: conflicting types for `RadioReceiveCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:33: previous declaration of `RadioReceiveCoordinator.startSymbol'
EventTimeSyncM.nc:343: conflicting types for `RadioReceiveCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:38: previous declaration of `RadioReceiveCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/platform/mica/MicaHighSpeedRadioM.nc:400: conflicting types for `RadioSendCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:33: previous declaration of `RadioSendCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/platform/mica/MicaHighSpeedRadioM.nc:401: conflicting types for `RadioSendCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:38: previous declaration of `RadioSendCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/platform/mica/MicaHighSpeedRadioM.nc:403: conflicting types for `RadioReceiveCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:33: previous declaration of `RadioReceiveCoordinator.startSymbol'
/pro/spawn/users/kycho/tinyos-1.x/tos/platform/mica/MicaHighSpeedRadioM.nc:404: conflicting types for `RadioReceiveCoordinator.byte'
/pro/spawn/users/kycho/tinyos-1.x/tos/interfaces/RadioCoordinator.nc:38: previous declaration of `RadioReceiveCoordinator.byte'
make: *** [build/mica/main.exe] Error 1
--------------------------------------------------------------------------------------------------------------------------------------------------------

At the configuration file, I did

components MicaHighSpeedRadioM as RadioCoord;

EventTimeSyncM.RadioSendCoordinator -> RadioCoord.RadioSendCoordinator;
EventTimeSyncM.RadioReceiveCoordinator -> RadioCoord.RadioReceiveCoordinator;

At the module implementation, I did

uses interface RadioCoordinator as RadioSendCoordinator;
uses interface RadioCoordinator as RadioReceiveCoordinator;

async event void RadioSendCoordinator.startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff) {}
async event void RadioSendCoordinator.byte(TOS_MsgPtr msg, uint8_t byteCount) { }
async event void RadioSendCoordinator.blockTimer() { }

async event void RadioReceiveCoordinator.startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff) {}
async event void RadioReceiveCoordinator.byte(TOS_MsgPtr msg, uint8_t byteCount) { }
async event void RadioReceiveCoordinator.blockTimer() { }

Any idea what is problem? By the way, I'm using mica mote.

Thanks for reply in advance,
Kyuwook


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

Reply via email to