]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/NoLedsC.nc
stm25p: fix seek error
[tinyos-2.x.git] / tos / system / NoLedsC.nc
index 186c91f2979d0afdbe628dd7936069e0fb2e336f..9f8811323811027cda633ea93c41cbc6feb63cb4 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 
-/*                                                                     tab:4
+/*
  * "Copyright (c) 2000-2005 The Regents of the University  of California.  
  * All rights reserved.
  *
  * @date   March 19, 2005
  */
 
-
-configuration NoLedsC {
+module NoLedsC {
   provides interface Init;
   provides interface Leds;
 }
 implementation {
-  components NoLedsP;
-  Init = NoLedsP;
-  Leds = NoLedsP;
-}
 
+  command error_t Init.init() {return SUCCESS;}
+
+  async command void Leds.led0On() {}
+  async command void Leds.led0Off() {}
+  async command void Leds.led0Toggle() {}
+
+  async command void Leds.led1On() {}
+  async command void Leds.led1Off() {}
+  async command void Leds.led1Toggle() {}
+
+  async command void Leds.led2On() {}
+  async command void Leds.led2Off() {}
+  async command void Leds.led2Toggle() {}
+
+  async command uint8_t Leds.get() {return 0;}
+  async command void Leds.set(uint8_t val) {}
+}