[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/handhelds/apps/MOBIUS/ECG ECGM.nc, 1.1, 1.2

steve ayer ayer1 at users.sourceforge.net
Wed Dec 19 07:35:51 PST 2007


Update of /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/MOBIUS/ECG
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12943/ECG

Modified Files:
	ECGM.nc 
Log Message:

all files:
---------
bluetooth api updates used: disableRemoteConfig() and setBaudrate().

xt2 bug fixes added (bcsctl2 init) 
dma transfer bug fix (changed dmadt_5, repeat, to dmadt_1, single
transfer).

SixAxisCmdCtrlM.nc only:
-----------------------
fixed datatype mismatch bug in sample frequency change routine.


Index: ECGM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/MOBIUS/ECG/ECGM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ECGM.nc	19 Nov 2007 18:51:03 -0000	1.1
--- ECGM.nc	19 Dec 2007 15:35:49 -0000	1.2
***************
*** 125,129 ****
  
    norace uint8_t current_buffer = 0, dma_blocks = 0;
!   uint16_t sbuf0[36], sbuf1[36], wheressbuf0, timestamp0, timestamp1;
  
    /* default sample frequency every time the sensor boots up */
--- 125,129 ----
  
    norace uint8_t current_buffer = 0, dma_blocks = 0;
!   uint16_t sbuf0[36], sbuf1[36], timestamp0, timestamp1;
  
    /* default sample frequency every time the sensor boots up */
***************
*** 156,161 ****
      call DMA0.setBlockSize(3);
  
!     // we want block transfer, repeated
!     DMA0CTL = DMADT_5 + DMADSTINCR_3 + DMASRCINCR_3;
    }
  
--- 156,161 ----
      call DMA0.setBlockSize(3);
  
!     // we want block transfer, single
!     DMA0CTL = DMADT_1 + DMADSTINCR_3 + DMASRCINCR_3;
    }
  
***************
*** 206,211 ****
      register uint8_t i;
  
-     wheressbuf0 = (uint16_t)&sbuf0;
- 
      atomic CLR_FLAG(BCSCTL1, XT2OFF); // basic clock system control reg, turn off XT2 osc
  
--- 206,209 ----
***************
*** 223,227 ****
      call Leds.yellowOn();
      TOSH_uwait(50000UL);
!     atomic SET_FLAG(BCSCTL2, SELM_2);
      
      call Leds.yellowOff();
--- 221,229 ----
      call Leds.yellowOn();
      TOSH_uwait(50000UL);
! 
!     atomic{ 
!       BCSCTL2 = 0; 
!       SET_FLAG(BCSCTL2, SELM_2); 
!     }
      
      call Leds.yellowOff();
***************
*** 256,260 ****
--- 258,266 ----
        activity_led_on = FALSE;
      }
+ 
      call BTStdControl.init();
+     call Bluetooth.disableRemoteConfig(TRUE);
+      /* if CPU=8Mhz then customise roving networks baudrate to suit 8Mhz/9 baud */
+     call Bluetooth.setBaudrate("452");
      dma_blocks = 0;
      return SUCCESS;
***************
*** 533,536 ****
--- 539,543 ----
  
    event result_t SampleTimer.fired() {
+     call DMA0.beginTransfer();
      call DMA0.ADCbeginConversion();
      return SUCCESS;



More information about the Tinyos-contrib-commits mailing list