X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fcsystem%2FCLedsP.nc;h=63fa4773eff764e29927858bfc39ebfec5006365;hp=cf1944eb792746529c4c8afbf581772045289701;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/tosthreads/csystem/CLedsP.nc b/tos/lib/tosthreads/csystem/CLedsP.nc index cf1944eb..63fa4773 100644 --- a/tos/lib/tosthreads/csystem/CLedsP.nc +++ b/tos/lib/tosthreads/csystem/CLedsP.nc @@ -39,40 +39,40 @@ module CLedsP { } } implementation { - void led0On() @C() @spontaneous(){ + void led0On() @C() AT_SPONTANEOUS { call Leds.led0On(); } - void led0Off() @C() @spontaneous(){ + void led0Off() @C() AT_SPONTANEOUS { call Leds.led0Off(); } - void led0Toggle() @C() @spontaneous(){ + void led0Toggle() @C() AT_SPONTANEOUS{ call Leds.led0Toggle(); } - void led1On() @C() @spontaneous(){ + void led1On() @C() AT_SPONTANEOUS{ call Leds.led1On(); } - void led1Off() @C() @spontaneous(){ + void led1Off() @C() AT_SPONTANEOUS{ call Leds.led1Off(); } - void led1Toggle() @C() @spontaneous(){ + void led1Toggle() @C() AT_SPONTANEOUS{ call Leds.led1Toggle(); } - void led2On() @C() @spontaneous(){ + void led2On() @C() AT_SPONTANEOUS{ call Leds.led2On(); } - void led2Off() @C() @spontaneous(){ + void led2Off() @C() AT_SPONTANEOUS{ call Leds.led2Off(); } - void led2Toggle() @C() @spontaneous(){ + void led2Toggle() @C() AT_SPONTANEOUS{ call Leds.led2Toggle(); } - uint8_t getLeds() @C() @spontaneous(){ + uint8_t getLeds() @C() AT_SPONTANEOUS{ return call Leds.get(); } - void setLeds(uint8_t val) @C() @spontaneous(){ + void setLeds(uint8_t val) @C() AT_SPONTANEOUS{ call Leds.set(val); } }