[Tinyos-2-commits]
CVS: tinyos-2.x/tos/chips/atm128/adc AdcP.nc, 1.4,
1.5 AdcStreamP.nc, 1.4, 1.5
David Gay
idgay at users.sourceforge.net
Thu Feb 8 09:52:35 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/adc
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4727/atm128/adc
Modified Files:
AdcP.nc AdcStreamP.nc
Log Message:
remove left adjustment
fix bug in ReadStream (only 1st request worked)
Index: AdcP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/adc/AdcP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AdcP.nc 12 Dec 2006 18:23:03 -0000 1.4
--- AdcP.nc 8 Feb 2007 17:52:32 -0000 1.5
***************
*** 81,85 ****
void sample() {
! call Atm128AdcSingle.getData(channel(), refVoltage(), TRUE, prescaler());
}
--- 81,85 ----
void sample() {
! call Atm128AdcSingle.getData(channel(), refVoltage(), FALSE, prescaler());
}
Index: AdcStreamP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/adc/AdcStreamP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AdcStreamP.nc 12 Dec 2006 18:23:03 -0000 1.4
--- AdcStreamP.nc 8 Feb 2007 17:52:33 -0000 1.5
***************
*** 101,105 ****
void sample() {
! call Atm128AdcSingle.getData(channel(), refVoltage(), TRUE, prescaler());
}
--- 101,105 ----
void sample() {
! call Atm128AdcSingle.getData(channel(), refVoltage(), FALSE, prescaler());
}
***************
*** 124,127 ****
--- 124,133 ----
uint32_t actualPeriod = call Atm128Calibrate.actualMicro(period);
+ atomic
+ {
+ bufferQueue[c] = NULL;
+ bufferQueueEnd[c] = &bufferQueue[c];
+ }
+
client = NSTREAM;
signal ReadStream.readDone[c](SUCCESS, actualPeriod);
More information about the Tinyos-2-commits
mailing list