summaryrefslogtreecommitdiff
path: root/components/drivers/sensors
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-10-14 19:37:18 +0800
committerBernard Xiong <[email protected]>2018-10-14 19:37:18 +0800
commit2c0640a17872cd0e2a4fc8dc8a301a77dae6cc0d (patch)
tree8b4894fa67e7e8cfd144fb18d87657ea42f55a21 /components/drivers/sensors
parent9064b28c2a7503a96fe69adcf55f604a7d25b5de (diff)
[license] Change license to Apache.
Diffstat (limited to 'components/drivers/sensors')
-rw-r--r--components/drivers/sensors/bmi055_sensor.cpp10
-rw-r--r--components/drivers/sensors/bmi055_sensor.h8
-rw-r--r--components/drivers/sensors/mpu6050_sensor.cpp8
-rw-r--r--components/drivers/sensors/mpu6050_sensor.h8
-rw-r--r--components/drivers/sensors/sensor.cpp8
-rw-r--r--components/drivers/sensors/sensor.h8
6 files changed, 13 insertions, 37 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;
diff --git a/components/drivers/sensors/bmi055_sensor.h b/components/drivers/sensors/bmi055_sensor.h
index 7ec6d9e5cf..713aa74ad0 100644
--- a/components/drivers/sensors/bmi055_sensor.h
+++ b/components/drivers/sensors/bmi055_sensor.h
@@ -1,11 +1,7 @@
/*
- * File : bmi055_sensor.h
- * 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
diff --git a/components/drivers/sensors/mpu6050_sensor.cpp b/components/drivers/sensors/mpu6050_sensor.cpp
index 8f6557a7ce..358796bc30 100644
--- a/components/drivers/sensors/mpu6050_sensor.cpp
+++ b/components/drivers/sensors/mpu6050_sensor.cpp
@@ -1,11 +1,7 @@
/*
- * File : MPU6050_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
diff --git a/components/drivers/sensors/mpu6050_sensor.h b/components/drivers/sensors/mpu6050_sensor.h
index c7e28ba28e..8f70c3e5ed 100644
--- a/components/drivers/sensors/mpu6050_sensor.h
+++ b/components/drivers/sensors/mpu6050_sensor.h
@@ -1,11 +1,7 @@
/*
- * File : MPU6050_sensor.h
- * 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
diff --git a/components/drivers/sensors/sensor.cpp b/components/drivers/sensors/sensor.cpp
index abeecdb883..f986510f63 100644
--- a/components/drivers/sensors/sensor.cpp
+++ b/components/drivers/sensors/sensor.cpp
@@ -1,11 +1,7 @@
/*
- * File : sensors.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
diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h
index fd44611f5a..916360d34b 100644
--- a/components/drivers/sensors/sensor.h
+++ b/components/drivers/sensors/sensor.h
@@ -1,11 +1,7 @@
/*
- * File : sensors.h
- * 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