[Firebug-cvs] fireboard/fireboard/sensors/adxl202je adxlM.nc,1.1.1.1,1.2
Brought to you by:
doolin
From: <do...@us...> - 2004-01-22 00:40:09
|
Update of /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je In directory sc8-pr-cvs1:/tmp/cvs-serv31002/fireboard/sensors/adxl202je Modified Files: adxlM.nc Log Message: Crash bang boom. Light and barometer are down at the moment, but the driver code is getting much cleaner. May need to back out a couple of minor changes later. There may be a file or two that have been removed from the archive that will be actually needed, it/they can be added back if it is not possible to make the system files work. Index: adxlM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je/adxlM.nc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** adxlM.nc 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- adxlM.nc 22 Jan 2004 00:40:06 -0000 1.2 *************** *** 53,56 **** --- 53,58 ---- #include "adxl202je.h" #include "SODebug.h" + #define DBG_USR2 0 + #define ACCEL_POWER_OFF 0 #define ACCEL_POWER_ON 1 *************** *** 65,69 **** command result_t StdControl.init() { ! init_debug(); call Leds.init(); --- 67,71 ---- command result_t StdControl.init() { ! //init_debug(); call Leds.init(); *************** *** 74,81 **** command result_t StdControl.start() { ! call Leds.redOn(); ! call Leds.yellowOn(); ! call Leds.greenOn(); ! call Timer.start(TIMER_REPEAT, 500); return SUCCESS; } --- 76,80 ---- command result_t StdControl.start() { ! //call Timer.start(TIMER_REPEAT, 500); return SUCCESS; } *************** *** 88,95 **** event result_t Timer.fired() { - call Leds.redOff(); - call Leds.yellowOff(); - call Leds.greenOff(); - call AccelCmd.PowerSwitch(ACCEL_POWER_ON); return SUCCESS; --- 87,90 ---- *************** *** 151,155 **** event result_t AccelCmd.SwitchesSet(uint8_t PowerState) { - call Leds.greenToggle(); if (PowerState) { call AccelX.getData(); --- 146,149 ---- |