I have downloaded TinyDB from sourceforge CVS. It compiles for Mica2 but when I try to compile for MicaZ I get the following error
/opt/tinyos-1.x/tos/system/Reset.h:56:2: #error "Reset.h not defined/supported for your platform, aborting..."
In file included from /opt/tinyos-1.x/tos/lib/Commands/CommandReset.nc:52,
from /opt/tinyos-1.x/tos/lib/TinyDB/TinyDBCommand.nc:41,
from /opt/tinyos-1.x/tos/lib/TinyDB/NetworkMultiHop.nc:72,
from /opt/tinyos-1.x/tos/lib/TinyDB/TupleRouter.nc:60,
from TinyDBApp.nc:47:
/opt/tinyos-1.x/tos/system/ResetC.nc:44: failed to preprocess /opt/tinyos-1.x/tos/system/Reset.h
In component `ResetC':
/opt/tinyos-1.x/tos/system/ResetC.nc: In function `Reset.reset':
/opt/tinyos-1.x/tos/system/ResetC.nc:54: implicit declaration of function `resetMote'
make: *** [exe0] Error 1
A look into /opt/tinyos- 1.x/tos/system/Reset.h shows that PLATFORM_MICAZ is not defined.
void resetMote()
{
#if defined(PLATFORM_MICA) || defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT)
cli();
wdt_enable(0);
while (1) {
__asm__ __volatile__("nop" "\n\t" ::);
}
#elif defined(PLATFORM_TELOS) || defined(PLATFORM_TELOSB)
WDTCTL = 0;
#else
#error " Reset.h not defined/supported for your platform, aborting..."
#endif
}
if, however, I comment out the elif part I can compile and it works properly on MicaZ.
Just wondering is this a bug? Has anyone else experienced this. BTW I am using tinyos-1.1.15 on Linux.
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
