summaryrefslogtreecommitdiff
path: root/libsensors_iio/Kconfig_menu/Kconfig_common
diff options
context:
space:
mode:
authorBaixing Tan <baixingx.tan@intel.com>2015-03-25 11:16:57 +0800
committerZhengyin Qian <qianzy@google.com>2015-07-28 12:19:18 -0700
commit049ab1da89d389f05870f7e30d585ecfc14524dd (patch)
tree37bd50571b00976df97cc10e64e6be66c1e5c422 /libsensors_iio/Kconfig_menu/Kconfig_common
parent0d5f99879a2ed5026cee26374d18d0e878ed0e13 (diff)
downloadsensors-049ab1da89d389f05870f7e30d585ecfc14524dd.tar.gz
Original code get from ST for lsm6ds3 sensor base on iio subsystem
Add original SensorHAL_IIO_v3.1.0 for lsm6ds3 sensor Change-Id: Iebd049a36696f9b1f09049cc8672ed260c12cdf7 Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-175 Signed-off-by: Baixing Tan <baixingx.tan@intel.com> Reviewed-on: https://android.intel.com:443/346267
Diffstat (limited to 'libsensors_iio/Kconfig_menu/Kconfig_common')
-rw-r--r--libsensors_iio/Kconfig_menu/Kconfig_common57
1 files changed, 57 insertions, 0 deletions
diff --git a/libsensors_iio/Kconfig_menu/Kconfig_common b/libsensors_iio/Kconfig_menu/Kconfig_common
new file mode 100644
index 0000000..697aa5f
--- /dev/null
+++ b/libsensors_iio/Kconfig_menu/Kconfig_common
@@ -0,0 +1,57 @@
+#
+# Common configuration
+#
+
+menu "Common configuration"
+config ST_HAL_MAX_SAMPLING_FREQUENCY
+ int "Max sampling frequency selectable [Hz]"
+ range 50 400
+ default 200
+ help
+ Maximium value of sampling frequency that can be used in IIO driver.
+
+config ST_HAL_DEBUG_LEVEL
+ int "Debug level"
+ range 0 3
+ default 0
+ help
+ Debugging information level. [0 - 3]
+ 0: error only;
+ 1: info messages;
+ 2: verbose;
+ 3: extra-verbose;
+
+if ST_HAL_ACCEL_ENABLED
+config ST_HAL_ACCEL_ROT_MATRIX
+ string "Accelerometer Rotation matrix"
+ default "1,0,0,0,1,0,0,0,1"
+
+config ST_HAL_ACCEL_RANGE
+ int "Accelerometer Max Range (m/s^2)"
+ default 17
+
+endif
+
+if ST_HAL_MAGN_ENABLED || ST_HAL_MAGN_UNCALIB_HW_ENABLED
+config ST_HAL_MAGN_ROT_MATRIX
+ string "Magnetometer Rotation matrix"
+ default "1,0,0,0,1,0,0,0,1"
+
+config ST_HAL_MAGN_RANGE
+ int "Magnetometer Max Range (uTesla)"
+ default 1000
+
+endif
+
+if ST_HAL_GYRO_ENABLED || ST_HAL_GYRO_UNCALIB_HW_ENABLED
+config ST_HAL_GYRO_ROT_MATRIX
+ string "Gyroscope Rotation matrix"
+ default "1,0,0,0,1,0,0,0,1"
+
+config ST_HAL_GYRO_RANGE
+ int "Gyroscope Max Range (rad/sec)"
+ default 35
+
+endif
+
+endmenu # Common configuration