]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/m16c62p/adc/HplM16c62pAdcP.nc
Added TosThreads support for Mulle.
[tinyos-2.x.git] / tos / chips / m16c62p / adc / HplM16c62pAdcP.nc
index 01dea2d9959f2ef9e199706b18dcff3df9926b82..f6d0337633ce805ade17024fe06c6339a70f03d8 100755 (executable)
@@ -34,6 +34,13 @@ module HplM16c62pAdcP
 {
   provides interface HplM16c62pAdc;
   uses interface McuPowerState;
+  
+#ifdef THREADS
+  uses interface PlatformInterrupt;
+#define POST_AMBLE() call PlatformInterrupt.postAmble()
+#else 
+#define POST_AMBLE()
+#endif 
 }
 implementation
 {
@@ -140,6 +147,7 @@ implementation
     
     __nesc_enable_interrupt();
     signal HplM16c62pAdc.dataReady(data);
+    POST_AMBLE();
   }
 
   async command bool HplM16c62pAdc.cancel() {