A compilation of some hardware sensors and their shared programming interfaces.

Files at this revision

API Documentation at this revision

Comitter:
mgottscho
Date:
Wed Mar 19 00:35:31 2014 +0000
Parent:
0:8d34cc2ff388
Commit message:
Updated for most recent UtilityLib.

Changed in this revision

INA219.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/INA219.cpp	Sun Mar 16 01:48:59 2014 +0000
+++ b/INA219.cpp	Wed Mar 19 00:35:31 2014 +0000
@@ -7,9 +7,6 @@
 #include "mbed.h"
 #include "I2CSensor.h"
 #include "INA219.h"
-#include "Utility.h"
-
-extern Utility G_util;
  
 INA219::INA219(PinName sda, PinName scl, int i2c_addr) :
                                     I2CSensor(sda, scl, i2c_addr),
@@ -204,7 +201,6 @@
             resolution = true;
             return __shunt_resolution;
         } else { //this should never happen
-            G_util.panic("INA219 had an illegal shunt ADC setting", -1);
             return 0; //to keep compiler happy, this should never get reached
         }
     }
@@ -216,13 +212,11 @@
             resolution = true;
             return __bus_resolution;
         } else { //this should never happen
-            G_util.panic("INA219 had an illegal bus ADC setting", -1);
             return 0; //to keep compiler happy, this should never get reached
         }
     }
 }
 
-
 void INA219::setMode(bool shuntVoltage, bool busVoltage, bool continuous) {
     uint16_t code = 0;