]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/null/PlatformSerialC.nc
fix uin16_t alignment bug for the msp430
[tinyos-2.x.git] / tos / platforms / null / PlatformSerialC.nc
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;
   }
 }