Hello,
I am using TinyOS 2.1.1 on Ubuntu 9.10 with MicaZ motes. I am looking to
alter the value of the prescaler while sampling the X axis of the
accelerometer on the mts300 sensorboard.
After doing some digging, I found the
file /tos/sensorboards/mts300/AccelP.nc which returns the value of the
prescaler for configuring the Adc, the getdata() function for which leads
me back to the /tos/chips/atm128/adc/Atm128AdcP.nc file.
The code in the AccelP.nc file that I am referring to is as follows:
*
*
* async command uint8_t ConfigX.getPrescaler() {*
* return ATM128_ADC_PRESCALE;*
* }*
*
*
Will it suffice to change the returned value to, for example,
*ATM128_ADC_PRESCALE_32
(*as provided in the /tos/chips/atm128/adc/Atm128Adc.h) if I want to use
the adc prescaler (32)?
Thanks in advance,
Kushal
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help