[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/handhelds/tos/lib/RovingNetworks RovingNetworksM.nc, 1.7, 1.8

steve ayer ayer1 at users.sourceforge.net
Thu Apr 10 07:24:17 PDT 2008


Update of /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/tos/lib/RovingNetworks
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5332

Modified Files:
	RovingNetworksM.nc 
Log Message:


adrian burns (intel ireland) sent me these updates:

- reset-hold time in module init increased to 400 cycles
- uart clock rate adjusted to reflect "exactly 115200 baud"



Index: RovingNetworksM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/tos/lib/RovingNetworks/RovingNetworksM.nc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** RovingNetworksM.nc	19 Nov 2007 21:24:26 -0000	1.7
--- RovingNetworksM.nc	10 Apr 2008 14:24:15 -0000	1.8
***************
*** 99,103 ****
       */
      TOSH_SET_BT_RESET_PIN();    
!     for(i = 0; i < 200 ; i++)   // == 500k us
        TOSH_uwait(5000);
  
--- 99,103 ----
       */
      TOSH_SET_BT_RESET_PIN();    
!     for(i = 0; i < 400 ; i++)   // == 500k us
        TOSH_uwait(5000);
  
***************
*** 109,114 ****
      
      call ConnectionInterrupt.edge(TRUE);  // initially, we look for a connection
-     call ConnectionInterrupt.enable();  // interrupt upon connection state change (raises when connected, falls when dropped)
      call ConnectionInterrupt.clear();
  
      TOSH_CLR_BT_CTS_PIN();     // toggling cts wakes it up
--- 109,114 ----
      
      call ConnectionInterrupt.edge(TRUE);  // initially, we look for a connection
      call ConnectionInterrupt.clear();
+     call ConnectionInterrupt.enable();  // interrupt upon connection state change (raises when connected, falls when dropped)
  
      TOSH_CLR_BT_CTS_PIN();     // toggling cts wakes it up
***************
*** 120,124 ****
    void setupUART() {
      call UARTControl.setClockSource(SSEL_SMCLK);
!     call UARTControl.setClockRate(UBR_SMCLK_115200, UMCTL_SMCLK_115200);
      call UARTControl.setModeUART();
      call UARTControl.enableTxIntr();
--- 120,126 ----
    void setupUART() {
      call UARTControl.setClockSource(SSEL_SMCLK);
!     //call UARTControl.setClockRate(UBR_SMCLK_115200, UMCTL_SMCLK_115200);
!     call UARTControl.setClockRate(8, 0xee); /* make it exactly 115200 baud, see MSP user guide */
! 
      call UARTControl.setModeUART();
      call UARTControl.enableTxIntr();



More information about the Tinyos-contrib-commits mailing list