diff options
| author | Bernard Xiong <[email protected]> | 2018-10-14 19:37:18 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-10-14 19:37:18 +0800 |
| commit | 2c0640a17872cd0e2a4fc8dc8a301a77dae6cc0d (patch) | |
| tree | 8b4894fa67e7e8cfd144fb18d87657ea42f55a21 /components/drivers/sensors/bmi055_sensor.cpp | |
| parent | 9064b28c2a7503a96fe69adcf55f604a7d25b5de (diff) | |
[license] Change license to Apache.
Diffstat (limited to 'components/drivers/sensors/bmi055_sensor.cpp')
| -rw-r--r-- | components/drivers/sensors/bmi055_sensor.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/components/drivers/sensors/bmi055_sensor.cpp b/components/drivers/sensors/bmi055_sensor.cpp index 705895f368..b6e7f99da5 100644 --- a/components/drivers/sensors/bmi055_sensor.cpp +++ b/components/drivers/sensors/bmi055_sensor.cpp @@ -1,11 +1,7 @@ /* - * File : bmi055_sensor.cpp - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes @@ -137,7 +133,7 @@ BMI055_Accelerometer::BMI055_Accelerometer(const char* iic_name, int addr) write_reg(BMI055_BGW_SOFTRESET, 0xB6); /* reset of the sensor P57 */ write_reg(BMI055_PMU_LPW, 0x00); /* PMU_LPW NORMAL mode P55 */ write_reg(BMI055_PMU_BW, 0x0A); /* 01010b 31.25 Hz P55 */ - write_reg(BMI055_PMU_RANGE, 0x05); /* 0101b ±4g range PMU_RANGE set acc +-4g/s P54 */ + write_reg(BMI055_PMU_RANGE, 0x05); /* 0101b 卤4g range PMU_RANGE set acc +-4g/s P54 */ x_offset = y_offset = z_offset = 0; |
