]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/adc12/AdcP.nc
GCC 4.4.3 seems to have proper bitfield support.
[tinyos-2.x.git] / tos / chips / msp430 / adc12 / AdcP.nc
index f7ae2cb1ecdf9afe193bae827fd5ad1f871b8350..b8dea93f104ee859a79385dd5c35d97b291fe218 100644 (file)
@@ -33,7 +33,7 @@
  * ========================================================================
  */
 
-module AdcP {
+module AdcP @safe() {
   provides {
     interface Read<uint16_t> as Read[uint8_t client];
     interface ReadNow<uint16_t> as ReadNow[uint8_t client];
@@ -159,7 +159,7 @@ implementation
   }
 
   async event uint16_t* SingleChannel.multipleDataReady[uint8_t client](
-      uint16_t * COUNT_NOK(length) buf, uint16_t length)
+      uint16_t *buf, uint16_t numSamples)
   {
     // error !
     return 0;