[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/handhelds/apps/MOBIUS/AccelGyro
AccelGyroM.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/AccelGyro
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv28709/AccelGyro
Modified Files:
AccelGyroM.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: AccelGyroM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/MOBIUS/AccelGyro/AccelGyroM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AccelGyroM.nc 19 Dec 2007 15:35:49 -0000 1.2
--- AccelGyroM.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
***************
*** 118,122 ****
/* default sample frequency every time the sensor boots up */
! uint16_t sample_freq = SAMPLING_100HZ;
bool enable_sending, command_mode_complete, activity_led_on;
--- 121,125 ----
/* default sample frequency every time the sensor boots up */
! uint16_t sample_freq = SAMPLING_50HZ;
bool enable_sending, command_mode_complete, activity_led_on;
***************
*** 197,200 ****
--- 200,205 ----
command result_t StdControl.init() {
+
+ #ifdef USE_8MHZ_CRYSTAL
/*
* set up 8mhz clock to max out
***************
*** 233,236 ****
--- 238,242 ----
* end clock set up
*/
+ #endif /* USE_8MHZ_CRYSTAL */
call AccelStdControl.init();
More information about the Tinyos-contrib-commits
mailing list