}
implementation {
components MainC, BlinkC, LedsC;
- components new ThreadC(800) as NullThread;
- components new ThreadC(800) as TinyThread0;
- components new ThreadC(800) as TinyThread1;
- components new ThreadC(800) as TinyThread2;
+ components new ThreadC(100) as NullThread;
+ components new ThreadC(100) as TinyThread0;
+ components new ThreadC(100) as TinyThread1;
+ components new ThreadC(100) as TinyThread2;
MainC.Boot <- BlinkC;
BlinkC.NullThread -> NullThread;
call Leds.led0Toggle();
}
}
-}
\ No newline at end of file
+}
+
call Leds.led0Toggle();
}
}
-}
\ No newline at end of file
+}
+
TOSTHREAD_MAIN=TestLogStorage.c
-include $(MAKERULES)
+THIS_SUPPORTED_PLATFORMS=tmote telos telosb eyesIFXv1 eyesIFXv2 mica2 mica2dot telosa eyesIFX micaz iris tinynode
+
+ifneq ($(filter $(THIS_SUPPORTED_PLATFORMS) clean,$(MAKECMDGOALS)),)
+ ifneq ($(filter tmote telos telosb eyesIFXv1,$(MAKECMDGOALS)),)
+ CFLAGS+=-DUSE_STM25P
+ endif
+ ifneq ($(filter mica2 telosa mica2dot eyesIFX eyesIFXv2 micaz iris tinynode,$(MAKECMDGOALS)),)
+ CFLAGS+=-DUSE_AT45DB
+ endif
+
+ include $(MAKERULES)
+else
+%:
+ @echo " Sorry, this application is only written to work with the following platforms:"
+ @echo " $(THIS_SUPPORTED_PLATFORMS)"
+cthreads:
+ @:
+endif
while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 228) != SUCCESS );
led0Toggle();
}
-}
\ No newline at end of file
+}
+