BMP180

Fork of BMP180 by Kevin Gillepsie

Revision:
1:817fb4e66714
Parent:
0:b2219e6e444b
diff -r b2219e6e444b -r 817fb4e66714 BMP180.cpp
--- a/BMP180.cpp	Fri Apr 17 09:31:09 2015 -0500
+++ b/BMP180.cpp	Tue Jul 05 07:09:02 2016 +0000
@@ -1,53 +1,5 @@
-/*******************************************************************************
- * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
- * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Except as contained in this notice, the name of Maxim Integrated
- * Products, Inc. shall not be used except as stated in the Maxim Integrated
- * Products, Inc. Branding Policy.
- *
- * The mere transfer of this software does not imply any licenses
- * of trade secrets, proprietary technology, copyrights, patents,
- * trademarks, maskwork rights, or any other form of intellectual
- * property whatsoever. Maxim Integrated Products, Inc. retains all
- * ownership rights.
- *******************************************************************************
- */
-
 #include "BMP180.h"
 
-/***** Definitions *****/
-#define I2C_ADDR            (0xEE) // 1110111x
-
-#define REG_ADDR_RESET      (0xE0)
-#define REG_ADDR_ID         (0xD0)
-#define REG_ADDR_CTRL       (0xF4)
-#define REG_ADDR_DATA       (0xF6)
-#define REG_ADDR_AC1        (0xAA)
-
-#define CTRL_REG_TEMP       (0x2E)
-#define CTRL_REG_PRESS_0    (0x34)
-#define CTRL_REG_PRESS_1    (0x74)
-#define CTRL_REG_PRESS_2    (0xB4)
-#define CTRL_REG_PRESS_3    (0xF4)
-
 //******************************************************************************
 BMP180::BMP180(PinName sda, PinName scl)
 {
@@ -80,6 +32,7 @@
     int i;
 
     if (checkId() != 0) {
+      
         return -1;
     }