X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsensorboards%2Fmts300%2FMagYC.nc;h=db56991abfaf32629282e98753adaead7e366313;hb=ea91d610f54dd99029ce18bdd51649210a78943d;hp=72c8bd46828ef388bef045f92966fe8e7903358e;hpb=805e25939a652bf5fde3f4e8ebdc8d1bd751944f;p=tinyos-2.x.git diff --git a/tos/sensorboards/mts300/MagYC.nc b/tos/sensorboards/mts300/MagYC.nc index 72c8bd46..db56991a 100644 --- a/tos/sensorboards/mts300/MagYC.nc +++ b/tos/sensorboards/mts300/MagYC.nc @@ -1,34 +1,34 @@ -/* $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 MagYC() -{ - provides interface Mag; - provides interface Read; -} -implementation { - enum { - ID = unique(UQ_MAG_RESOURCE) - }; - - components MagReadP,MagConfigP, new AdcReadClientC() as AdcY; - - Mag = MagReadP; - - Read = MagReadP.MagY[ID]; - MagReadP.ActualY[ID] -> AdcY; - AdcY.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 MagYC() +{ + provides interface Mag; + provides interface Read; +} +implementation { + enum { + ID = unique(UQ_MAG_RESOURCE) + }; + + components MagReadP,MagConfigP, new AdcReadClientC() as AdcY; + + Mag = MagReadP; + + Read = MagReadP.MagY[ID]; + MagReadP.ActualY[ID] -> AdcY; + AdcY.Atm128AdcConfig -> MagConfigP.ConfigY; +} +