X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftutorials%2FBlinkConfig%2FBlinkConfigAppC.nc;h=ee271cdaea8cacc5760b5832c0491d1c6f9cb8df;hb=2b44d5842b2810c916bba054e6aaba9bd79dfbf7;hp=f990b6ccfe77630eac07c497de61a6cfb46c6513;hpb=7a6d7450e917f467713bf96fb0073f1baf0617cf;p=tinyos-2.x.git diff --git a/apps/tutorials/BlinkConfig/BlinkConfigAppC.nc b/apps/tutorials/BlinkConfig/BlinkConfigAppC.nc index f990b6cc..ee271cda 100644 --- a/apps/tutorials/BlinkConfig/BlinkConfigAppC.nc +++ b/apps/tutorials/BlinkConfig/BlinkConfigAppC.nc @@ -24,14 +24,14 @@ * UPDATES, ENHANCEMENTS, OR MODIFICATIONS." */ #include "StorageVolumes.h" +#include "Timer.h" /** - * Application to demonstrate the ConfigStorageC abstraction. A value - * is written to, and read from, the flash storage. A successful test - * will turn on both the green and blue (yellow) LEDs. A failed test - * is any other LED configuration. + * Application to demonstrate the ConfigStorageC abstraction. A timer + * period is read from flash, divided by two, and written back to + * flash. An LED is toggled each time the timer fires. * - * @author Prabal Dutta + * @author Prabal Dutta */ configuration BlinkConfigAppC { } @@ -39,12 +39,11 @@ implementation { components BlinkConfigC as App; components new ConfigStorageC(VOLUME_CONFIGTEST); components MainC, LedsC, PlatformC, SerialActiveMessageC; + components new TimerMilliC() as Timer0; - App.Boot -> MainC.Boot; - - App.AMControl -> SerialActiveMessageC; - App.AMSend -> SerialActiveMessageC.AMSend[1]; - App.Config -> ConfigStorageC.ConfigStorage; - App.Mount -> ConfigStorageC.Mount; - App.Leds -> LedsC; + App.Boot -> MainC.Boot; + App.Config -> ConfigStorageC.ConfigStorage; + App.Mount -> ConfigStorageC.Mount; + App.Leds -> LedsC; + App.Timer0 -> Timer0; }