]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
bit rot fixes
authoridgay <idgay>
Wed, 23 May 2007 22:17:49 +0000 (22:17 +0000)
committeridgay <idgay>
Wed, 23 May 2007 22:17:49 +0000 (22:17 +0000)
tos/platforms/null/ActiveMessageC.nc
tos/platforms/null/PlatformLedsC.nc
tos/platforms/null/PlatformSerialC.nc

index 73893f8e8e2758a2314acf1f3cf70ad11ee1a8f0..e42a46ad41b044f1fe708557f63a98b982479443 100644 (file)
@@ -92,6 +92,12 @@ implementation {
   command void AMPacket.setType(message_t* amsg, am_id_t t) {
   }
 
+  command am_addr_t AMPacket.source(message_t* amsg) {
+    return 0;
+  }
+
+  command void AMPacket.setSource(message_t* amsg, am_addr_t addr) { }
+
   command void* Receive.getPayload[uint8_t id](message_t* msg, uint8_t* len) {
     return NULL;
   }
index c10e511cd32322157f115ea66bfbecbcc960fb29..722b43fe9a7b49a3dafc461be13c0a72ea25c6e0 100644 (file)
@@ -81,4 +81,29 @@ implementation
   async command void Led2.makeOutput() {
     call Init.init();
   }
+
+  async command bool Led0.isInput() { 
+    return FALSE;
+  }
+
+  async command bool Led0.isOutput() { 
+    return FALSE;
+  }
+
+  async command bool Led1.isInput() { 
+    return FALSE;
+  }
+
+  async command bool Led1.isOutput() { 
+    return FALSE;
+  }
+
+  async command bool Led2.isInput() { 
+    return FALSE;
+  }
+
+  async command bool Led2.isOutput() { 
+    return FALSE;
+  }
+
 }
index 94ff26b56e47d9bd9dad0a3aeaba6506404a5814..839d4e0d167446e8583fb4ef7b1c89f284d9a90d 100644 (file)
  */
 
 module PlatformSerialC {
-  provides interface Init;
   provides interface StdControl;
-  provides interface SerialByteComm;
+  provides interface UartByte;
+  provides interface UartStream;
 }
 implementation {
-  async command error_t SerialByteComm.put(uint8_t data) {
+  command error_t StdControl.start() {
     return SUCCESS;
   }
 
-  command error_t Init.init() {
+  command error_t StdControl.stop() {
     return SUCCESS;
   }
 
-  command error_t StdControl.start() {
+  async command error_t UartByte.send( uint8_t byte ) {
     return SUCCESS;
   }
 
-  command error_t StdControl.stop() {
+  async command error_t UartByte.receive( uint8_t* byte, uint8_t timeout ) {
+    return SUCCESS;
+  }
+
+  async command error_t UartStream.send( uint8_t* buf, uint16_t len ) {
+    return SUCCESS;
+  }
+
+  async command error_t UartStream.enableReceiveInterrupt() {
+    return SUCCESS;
+  }
+
+  async command error_t UartStream.disableReceiveInterrupt() {
+    return SUCCESS;
+  }
+
+  async command error_t UartStream.receive( uint8_t* buf, uint16_t len ) {
     return SUCCESS;
   }
 }