]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/timer/HplAtm128Timer1P.nc
fixed capture time
[tinyos-2.x.git] / tos / chips / atm128 / timer / HplAtm128Timer1P.nc
index 91f6ebf6f03224038ccca4ec56261d4b8d51625f..f8070cf94d4145aee89deb0c02c357b730fbeb4d 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <Atm128Timer.h>
 
-module HplAtm128Timer1P
+module HplAtm128Timer1P @safe()
 {
   provides {
     // 16-bit Timers
@@ -205,7 +205,7 @@ implementation
   }
   default async event void Capture.captured(uint16_t time) { }
   AVR_NONATOMIC_HANDLER(SIG_INPUT_CAPTURE1) {
-    signal Capture.captured(call Timer.get());
+    signal Capture.captured(call Capture.get());
   }
   default async event void Timer.overflow() { }
   AVR_NONATOMIC_HANDLER(SIG_OVERFLOW1) {