X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsensorboards%2Fmts300%2FMagYStreamC.nc;h=843fa2a9aae63e279ef808a36e9a64061c731f31;hb=ea91d610f54dd99029ce18bdd51649210a78943d;hp=adfd842fb7b53f47877f226fcddf8fa5cf8f7957;hpb=805e25939a652bf5fde3f4e8ebdc8d1bd751944f;p=tinyos-2.x.git diff --git a/tos/sensorboards/mts300/MagYStreamC.nc b/tos/sensorboards/mts300/MagYStreamC.nc index adfd842f..843fa2a9 100644 --- a/tos/sensorboards/mts300/MagYStreamC.nc +++ b/tos/sensorboards/mts300/MagYStreamC.nc @@ -1,31 +1,31 @@ -/* $Id$ - * Copyright (c) 2006 Intel Corporation - * All rights reserved. - * - * This file is distributed under the terms in the attached INTEL-LICENSE - * file. If you do not find these files, copies can be found by writing to - * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, - * 94704. Attention: Intel License Inquiry. - */ -/** - * @author Alif Chen - */ - -#include "mts300.h" - -generic configuration MagYStreamC() { - provides interface ReadStream; - provides interface Mag; -} -implementation { - enum { - ID = unique(UQ_ACCEL_RESOURCE) - }; - components MagReadStreamP, MagConfigP, new AdcReadStreamClientC(); - - Mag = MagReadStreamP; - - ReadStream = MagReadStreamP.ReadStreamY[ID]; - MagReadStreamP.ActualY[ID] -> AdcReadStreamClientC; - AdcReadStreamClientC.Atm128AdcConfig -> MagConfigP.ConfigY; -} +/* $Id$ + * Copyright (c) 2006 Intel Corporation + * All rights reserved. + * + * This file is distributed under the terms in the attached INTEL-LICENSE + * file. If you do not find these files, copies can be found by writing to + * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, + * 94704. Attention: Intel License Inquiry. + */ +/** + * @author Alif Chen + */ + +#include "mts300.h" + +generic configuration MagYStreamC() { + provides interface ReadStream; + provides interface Mag; +} +implementation { + enum { + ID = unique(UQ_ACCEL_RESOURCE) + }; + components MagReadStreamP, MagConfigP, new AdcReadStreamClientC(); + + Mag = MagReadStreamP; + + ReadStream = MagReadStreamP.ReadStreamY[ID]; + MagReadStreamP.ActualY[ID] -> AdcReadStreamClientC; + AdcReadStreamClientC.Atm128AdcConfig -> MagConfigP.ConfigY; +}