]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tinynode/TinyNodeSerialP.nc
Swapping HEAD and DEVEL branches
[tinyos-2.x.git] / tos / platforms / tinynode / TinyNodeSerialP.nc
index 92187c5823ebdbdea7189b5bc96b965becd2b4e4..0222530cf1ed89d870d5f421eccf08a6f3771741 100644 (file)
@@ -1,14 +1,27 @@
 module TinyNodeSerialP {
   provides interface StdControl;
+  provides interface Msp430UartConfigure;
   uses interface Resource;
 }
 implementation {
+
+  msp430_uart_union_config_t msp430_uart_tinynode_config = {{ubr: UBR_1MHZ_115200, umctl: UMCTL_1MHZ_115200, ssel: 0x02, pena: 0, pev: 0, spb: 0, clen: 1, listen: 0, mm: 0, ckpl: 0, urxse: 0, urxeie: 1, urxwie: 0, utxe : 1, urxe : 1}};
+  
+  
   command error_t StdControl.start(){
     return call Resource.immediateRequest();
   }
+
   command error_t StdControl.stop(){
     call Resource.release();
     return SUCCESS;
   }
+
   event void Resource.granted(){}
+  
+  async command msp430_uart_union_config_t* Msp430UartConfigure.getConfig() {
+    return &msp430_uart_tinynode_config;
+  }
+
 }
+