From: idgay Date: Tue, 22 May 2007 21:02:12 +0000 (+0000) Subject: voltage sensors for mica family - all based on internal ADC for X-Git-Tag: release_tools_1_2_4_1~176 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=304986102fcffa2e6e465cb9754e504c3e78c79b;p=tinyos-2.x.git voltage sensors for mica family - all based on internal ADC for consistency and simplicity (external sensor on mica2, mica2dot no longer used) --- diff --git a/tos/platforms/mica/VoltageNowC.nc b/tos/platforms/mica/VoltageNowC.nc index 814a04e8..b7088847 100644 --- a/tos/platforms/mica/VoltageNowC.nc +++ b/tos/platforms/mica/VoltageNowC.nc @@ -1,16 +1,9 @@ -/* $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. - */ /** - * Voltage sensor. - * - * @author David Gay + * Battery Voltage. The returned value represents the difference + * between the battery voltage and V_BG (1.23V). The formula to convert + * it to mV is: 1223 * 1024 / value. + * + * @author Razvan Musaloiu-E. */ #include "hardware.h" diff --git a/tos/platforms/mica/VoltageStreamC.nc b/tos/platforms/mica/VoltageStreamC.nc index ff477a6e..fdb51762 100644 --- a/tos/platforms/mica/VoltageStreamC.nc +++ b/tos/platforms/mica/VoltageStreamC.nc @@ -1,16 +1,9 @@ -/* $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. - */ /** - * Voltage sensor. - * - * @author David Gay + * Battery Voltage. The returned value represents the difference + * between the battery voltage and V_BG (1.23V). The formula to convert + * it to mV is: 1223 * 1024 / value. + * + * @author Razvan Musaloiu-E. */ #include "hardware.h"