From 304986102fcffa2e6e465cb9754e504c3e78c79b Mon Sep 17 00:00:00 2001 From: idgay Date: Tue, 22 May 2007 21:02:12 +0000 Subject: [PATCH] voltage sensors for mica family - all based on internal ADC for consistency and simplicity (external sensor on mica2, mica2dot no longer used) --- tos/platforms/mica/VoltageNowC.nc | 17 +++++------------ tos/platforms/mica/VoltageStreamC.nc | 17 +++++------------ 2 files changed, 10 insertions(+), 24 deletions(-) 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" -- 2.39.2