X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FNoLedsC.nc;h=9f8811323811027cda633ea93c41cbc6feb63cb4;hb=2209f8d2cb9ae1b6c268532e99a374533eb8fa78;hp=186c91f2979d0afdbe628dd7936069e0fb2e336f;hpb=1ba974b83d19fc41bf80acd52726f36f7f1df297;p=tinyos-2.x.git diff --git a/tos/system/NoLedsC.nc b/tos/system/NoLedsC.nc index 186c91f2..9f881132 100644 --- a/tos/system/NoLedsC.nc +++ b/tos/system/NoLedsC.nc @@ -1,6 +1,6 @@ // $Id$ -/* tab:4 +/* * "Copyright (c) 2000-2005 The Regents of the University of California. * All rights reserved. * @@ -31,14 +31,26 @@ * @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) {} +}