summaryrefslogtreecommitdiff
path: root/libsensors_iio/Kconfig_menu
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
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')
-rw-r--r--libsensors_iio/Kconfig_menu/Kconfig_common57
-rw-r--r--libsensors_iio/Kconfig_menu/Kconfig_drivers13
-rw-r--r--libsensors_iio/Kconfig_menu/Kconfig_enable_sensors194
-rw-r--r--libsensors_iio/Kconfig_menu/Kconfig_fusion_config31
4 files changed, 295 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
diff --git a/libsensors_iio/Kconfig_menu/Kconfig_drivers b/libsensors_iio/Kconfig_menu/Kconfig_drivers
new file mode 100644
index 0000000..c45c70c
--- /dev/null
+++ b/libsensors_iio/Kconfig_menu/Kconfig_drivers
@@ -0,0 +1,13 @@
+#
+# IIO drivers configuration
+#
+
+menu "IIO supported sensors"
+
+config ST_HAL_LSM6DS3_ENABLED
+ bool "LSM6DS3 sensor"
+ default y
+ help
+ Enable support for LSM6DS3 sensor.
+
+endmenu # IIO drivers configuration
diff --git a/libsensors_iio/Kconfig_menu/Kconfig_enable_sensors b/libsensors_iio/Kconfig_menu/Kconfig_enable_sensors
new file mode 100644
index 0000000..a36cbe3
--- /dev/null
+++ b/libsensors_iio/Kconfig_menu/Kconfig_enable_sensors
@@ -0,0 +1,194 @@
+#
+# Enable/Disable sensors
+#
+
+menu "Enable/disable sensors"
+config ST_HAL_ACCEL_ENABLED
+ bool "Accelerometer sensor"
+ default y
+ help
+ Enable support for Accelerometer sensor.
+
+config ST_HAL_MAGN_ENABLED
+ bool "Magnetometer sensor"
+ default y
+ help
+ Enable support for Magnetometer sensor.
+
+if ST_HAL_MAGN_ENABLED && ST_HAL_HAS_MAGN_CALIB
+config ST_HAL_MAGN_CALIB_ENABLED
+ bool "Enable Magnetometer calibration Library"
+ depends on ST_HAL_ACCEL_ENABLED
+ default n
+ help
+ Enable Magnetometer calibration library on Software by Application Processor Library.
+
+endif
+
+config ST_HAL_GYRO_ENABLED
+ bool "Gyroscope sensor"
+ default y
+ help
+ Enable support for Gyroscope sensor.
+
+if ST_HAL_GYRO_ENABLED && ST_HAL_HAS_GYRO_GBIAS_ESTIMATION
+config ST_HAL_GYRO_GBIAS_ESTIMATION_ENABLED
+ bool "Enable Gyroscope gbias estimation Library"
+ depends on ST_HAL_ACCEL_ENABLED
+ default n
+ help
+ Enable Gyroscope bias library estimation on Software by Application Processor Library.
+
+endif
+
+choice
+ prompt "Magnetometer Uncalibrated sensor"
+ default ST_HAL_MAGN_UNCALIB_DISABLED
+ help
+ Enable support for Magnetometer Uncalibrated sensor.
+
+config ST_HAL_MAGN_UNCALIB_DISABLED
+ bool "Disabled"
+config ST_HAL_MAGN_UNCALIB_AP_ENABLED
+ depends on ST_HAL_MAGN_CALIB_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Gyroscope Uncalibrated sensor"
+ default ST_HAL_GYRO_UNCALIB_DISABLED
+ help
+ Enable support for Gyroscope Uncalibrated sensor.
+
+config ST_HAL_GYRO_UNCALIB_DISABLED
+ bool "Disabled"
+config ST_HAL_GYRO_UNCALIB_AP_ENABLED
+ depends on ST_HAL_GYRO_GBIAS_ESTIMATION_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+config ST_HAL_SIGN_MOTION_ENABLED
+ bool "Significant Motion sensor"
+ default y
+ help
+ Enable support for Significant Motion sensor.
+
+config ST_HAL_STEP_DETECTOR_ENABLED
+ bool "Step Detector sensor sensor"
+ default y
+ help
+ Enable support for Step Detector sensor.
+
+config ST_HAL_STEP_COUNTER_ENABLED
+ bool "Step Counter sensor"
+ default y
+ help
+ Enable support for Step Counter sensor.
+
+config ST_HAL_TILT_ENABLED
+ bool "Tilt sensor"
+ default y
+ help
+ Enable support for Tilt sensor.
+
+config ST_HAL_PRESSURE_ENABLED
+ bool "Pressure sensor"
+ default y
+ help
+ Enable support for Pressure sensor.
+
+choice
+ prompt "Orientation sensor"
+ default ST_HAL_ORIENTATION_DISABLED
+ help
+ Enable support for Orientation sensor.
+
+config ST_HAL_ORIENTATION_DISABLED
+ bool "Disabled"
+config ST_HAL_ORIENTATION_AP_ENABLED
+ depends on ST_HAL_HAS_9AX_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_MAGN_ENABLED
+ depends on ST_HAL_GYRO_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Gravity sensor"
+ default ST_HAL_GRAVITY_DISABLED
+ help
+ Enable support for Gravity sensor.
+
+config ST_HAL_GRAVITY_DISABLED
+ bool "Disabled"
+config ST_HAL_GRAVITY_AP_ENABLED
+ depends on ST_HAL_HAS_9AX_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_MAGN_ENABLED
+ depends on ST_HAL_GYRO_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Linear Acceleration sensor"
+ default ST_HAL_LINEAR_DISABLED
+ help
+ Enable support for Linear Acceleration sensor.
+
+config ST_HAL_LINEAR_DISABLED
+ bool "Disabled"
+config ST_HAL_LINEAR_AP_ENABLED
+ depends on ST_HAL_HAS_9AX_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_MAGN_ENABLED
+ depends on ST_HAL_GYRO_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Rotation Vector sensor"
+ default ST_HAL_ROT_VECTOR_DISABLED
+ help
+ Enable support for Rotation Vector sensor.
+
+config ST_HAL_ROT_VECTOR_DISABLED
+ bool "Disabled"
+config ST_HAL_ROT_VECTOR_AP_ENABLED
+ depends on ST_HAL_HAS_9AX_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_MAGN_ENABLED
+ depends on ST_HAL_GYRO_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Game Rotation Vector sensor"
+ default ST_HAL_GAME_ROT_VECTOR_DISABLED
+ help
+ Enable support for Game Rotation Vector sensor.
+
+config ST_HAL_GAME_ROT_VECTOR_DISABLED
+ bool "Disabled"
+config ST_HAL_GAME_ROT_VECTOR_AP_ENABLED
+ depends on ST_HAL_HAS_6AX_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_GYRO_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+choice
+ prompt "Geomagnetic Rotation Vector sensor"
+ default ST_HAL_GEOMAG_ROT_VECTOR_DISABLED
+ help
+ Enable support for Geomagnetic Rotation Vector sensor.
+
+config ST_HAL_GEOMAG_ROT_VECTOR_DISABLED
+ bool "Disabled"
+config ST_HAL_GEOMAG_ROT_VECTOR_AP_ENABLED
+ depends on ST_HAL_HAS_GEOMAG_FUSION
+ depends on ST_HAL_ACCEL_ENABLED
+ depends on ST_HAL_MAGN_ENABLED
+ bool "Software by Application Processor Library"
+endchoice
+
+endmenu # Enable/disable sensors
diff --git a/libsensors_iio/Kconfig_menu/Kconfig_fusion_config b/libsensors_iio/Kconfig_menu/Kconfig_fusion_config
new file mode 100644
index 0000000..843ed45
--- /dev/null
+++ b/libsensors_iio/Kconfig_menu/Kconfig_fusion_config
@@ -0,0 +1,31 @@
+#
+# SensorFusion configuration
+#
+
+if ST_HAL_HAS_6AX_FUSION || ST_HAL_HAS_9AX_FUSION || ST_HAL_HAS_GEOMAG_FUSION
+menu "SensorFusion configuration"
+
+config ST_HAL_MIN_FUSION_POLLRATE
+ int "Min SensorFusion run frequency [Hz]"
+ range 20 ST_HAL_MAX_SAMPLING_FREQUENCY
+ default 50
+
+config ST_HAL_INEMO_GBIAS_THRESOLD_ACCEL
+ string "Accelerometer Gbias thresold"
+ default "86999e-9"
+
+if ST_HAL_HAS_9AX_FUSION || ST_HAL_HAS_GEOMAG_FUSION
+config ST_HAL_INEMO_GBIAS_THRESOLD_MAGN
+ string "Magnetometer Gbias thresold"
+ default "599999e-9"
+
+endif
+
+if ST_HAL_HAS_6AX_FUSION || ST_HAL_HAS_9AX_FUSION
+config ST_HAL_INEMO_GBIAS_THRESOLD_GYRO
+ string "Gyroscope Gbias thresold"
+ default "114999e-9"
+
+endif
+endmenu # Sensor Fusion configuration
+endif