/* * File : bmi055_sensor.h * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2014, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author Notes * 2015-1-11 RT_learning the first version */ #ifndef __BMI055_H__ #define __BMI055_H__ #include /**************************************************************************************************/ /************************************Register map accelerometer************************************/ #define BMI055_ACC_I2C_ADDR1 0x18 //SDO is low(GND) #define BMI055_ACC_I2C_ADDR2 0x19 //SDO is high(VCC) #define BMI055_ACC_DEFAULT_ADDRESS BMI055_ACC_I2C_ADDR2 //in the LPC54102 SPM-S #define BMI055_ACC_BGW_CHIPID_VALUE 0xFA #define BMI055_ACC_BGW_CHIPID 0x00 /**