[Tinyos-2-commits]
CVS: tinyos-2.x/tos/platforms/telosa/chips/s10871
HamamatsuS10871TsrC.nc, 1.4, 1.5 HamamatsuS10871TsrP.nc, 1.4, 1.5
Gilman Tolle
gtolle at users.sourceforge.net
Fri Apr 13 14:46:20 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa/chips/s10871
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25031/platforms/telosa/chips/s10871
Modified Files:
HamamatsuS10871TsrC.nc HamamatsuS10871TsrP.nc
Log Message:
Added DeviceMetadata interface to telosb sensors.
Index: HamamatsuS10871TsrC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HamamatsuS10871TsrC.nc 12 Dec 2006 18:23:45 -0000 1.4
--- HamamatsuS10871TsrC.nc 13 Apr 2007 21:46:18 -0000 1.5
***************
*** 39,42 ****
--- 39,43 ----
generic configuration HamamatsuS10871TsrC() {
+ provides interface DeviceMetadata;
provides interface Read<uint16_t>;
provides interface ReadStream<uint16_t>;
***************
*** 50,53 ****
--- 51,55 ----
components HamamatsuS10871TsrP;
+ DeviceMetadata = HamamatsuS10871TsrP;
AdcReadClientC.AdcConfigure -> HamamatsuS10871TsrP;
AdcReadStreamClientC.AdcConfigure -> HamamatsuS10871TsrP;
Index: HamamatsuS10871TsrP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HamamatsuS10871TsrP.nc 12 Dec 2006 18:23:45 -0000 1.4
--- HamamatsuS10871TsrP.nc 13 Apr 2007 21:46:18 -0000 1.5
***************
*** 41,44 ****
--- 41,45 ----
module HamamatsuS10871TsrP {
+ provides interface DeviceMetadata;
provides interface AdcConfigure<const msp430adc12_channel_config_t*>;
}
***************
*** 55,58 ****
--- 56,61 ----
sampcon_id: SAMPCON_CLOCK_DIV_1
};
+
+ command uint8_t DeviceMetadata.getSignificantBits() { return 12; }
async command const msp430adc12_channel_config_t* AdcConfigure.getConfiguration() {
More information about the Tinyos-2-commits
mailing list