[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/handhelds/apps/MOBIUS/AccelECG AccelECGM.nc, 1.2, 1.3

steve ayer ayer1 at users.sourceforge.net
Fri Jan 4 05:07:37 PST 2008


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

Modified Files:
	AccelECGM.nc 
Log Message:

Added USE_8MHZ_CRYSTAL so that normal MSP 4.15MHZ mode can be switched
in easily to configure the Bluetooth module. Then 8MHZ will work from
then on. 





Index: AccelECGM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/MOBIUS/AccelECG/AccelECGM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AccelECGM.nc	19 Dec 2007 15:35:48 -0000	1.2
--- AccelECGM.nc	4 Jan 2008 13:07:33 -0000	1.3
***************
*** 82,85 ****
--- 82,88 ----
    extern int sprintf(char *str, const char *format, ...) __attribute__ ((C));
  
+ /* comment out USE_8MHZ_CRYSTAL and load this code once so that the baudrate of the RovingNetworks 
+    Bluetooth module is setup(once only), then uncomment it and load for 8MHZ operation */
+ #define USE_8MHZ_CRYSTAL
  #define LOW_BATTERY_INDICATION
  
***************
*** 196,199 ****
--- 199,204 ----
    
    command result_t StdControl.init() {
+ 
+ #ifdef USE_8MHZ_CRYSTAL
      /* 
       * set up 8mhz clock to max out 
***************
*** 232,235 ****
--- 237,241 ----
       * end clock set up 
       */
+ #endif /* USE_8MHZ_CRYSTAL */
  
      call AccelStdControl.init();



More information about the Tinyos-contrib-commits mailing list