[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/telosa PlatformSerialC.nc, 1.1.2.5, 1.1.2.6 TelosSerialP.nc, 1.1.2.1, 1.1.2.2

Philipp Huppertz phihup at users.sourceforge.net
Thu Aug 3 11:21:51 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv28346/tos/platforms/telosa

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	PlatformSerialC.nc TelosSerialP.nc 
Log Message:
- example for usart configure with telosa

Index: PlatformSerialC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa/PlatformSerialC.nc,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -C2 -d -r1.1.2.5 -r1.1.2.6
*** PlatformSerialC.nc	1 Feb 2006 18:27:12 -0000	1.1.2.5
--- PlatformSerialC.nc	3 Aug 2006 18:21:49 -0000	1.1.2.6
***************
*** 1,14 ****
  configuration PlatformSerialC {
-   provides interface Init;
    provides interface StdControl;
    provides interface SerialByteComm;
  }
  implementation {
!   components new Uart1C() as UartC, TelosSerialP;
  
-   Init = UartC;
-   StdControl = UartC;
    StdControl = TelosSerialP;
    SerialByteComm = UartC;
    TelosSerialP.Resource -> UartC.Resource;
  }
--- 1,12 ----
  configuration PlatformSerialC {
    provides interface StdControl;
    provides interface SerialByteComm;
  }
  implementation {
!   components new Msp430Uart1C() as UartC, TelosSerialP;
  
    StdControl = TelosSerialP;
    SerialByteComm = UartC;
+   TelosSerialP.Msp430UartConfigure <- UartC.Msp430UartConfigure;
    TelosSerialP.Resource -> UartC.Resource;
  }

Index: TelosSerialP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa/TelosSerialP.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** TelosSerialP.nc	1 Feb 2006 18:27:12 -0000	1.1.2.1
--- TelosSerialP.nc	3 Aug 2006 18:21:49 -0000	1.1.2.2
***************
*** 1,7 ****
--- 1,11 ----
  module TelosSerialP {
    provides interface StdControl;
+   provides interface Msp430UartConfigure;
    uses interface Resource;
  }
  implementation {
+ 
+     msp430_uart_config_t msp430_uart_telos_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};
+ 
    command error_t StdControl.start(){
      return call Resource.immediateRequest();
***************
*** 12,14 ****
--- 16,22 ----
    }
    event void Resource.granted(){}
+ 
+   async command msp430_uart_config_t Msp430UartConfigure.getConfig() {
+     return msp430_uart_telos_config;
+   }
  }



More information about the Tinyos-2-commits mailing list