* 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 <prabal@cs.berkeley.edu>
*/
configuration BlinkConfigAppC {
}
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;
}